How can I check my own processes in Linux using nohup?

To view the processes started with the nohup command in Linux, you can use the following command:

  1. Use the ps command in conjunction with grep to filter the process list and find processes containing your username and the nohup command.
  2. List all processes running with your username that also have “nohup” in their command.
  3. For example, if your username is user1, you can execute the following command:
  4. List all running processes for user1 that are using the nohup command.
  5. This will list the processes containing your username and the nohup command.
  6. Use the pgrep command to find the process ID (PID) of a process by combining the process name (usually the name of the program being executed) with your username.
  7. List all the processes with the username and process name specified.
  8. For example, if your username is user1 and your process name is my_process, you can run the following command:
  9. Find the process ID of the process named “my_process” running as user “user1”.
  10. This will output the PID of the process that matches the given process name and username.
  11. Use the ps command to find processes that include your username and the nohup command, and filter out your processes using the process status (STAT).
  12. Show the Process ID, Parent Process ID, Command and Status of all processes running under your username, then filter the results to only display processes with “nohup” in the command.
  13. For example, if your username is user1, you can execute the following command:
  14. Display the processes with the specified user, showing the process ID, parent process ID, command, and status. Then filter the results to show only processes containing “nohup”.
  15. This will list the processes that contain your username and the nohup command, displaying their PID, parent process ID (PPID), command, and status.

Regardless of the method you use, you will be able to view the process that was started in Linux using the nohup command.

bannerAds