Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:process_management [2015/10/27 13:48] mguptonlinux:process_management [2018/06/01 13:27] (current) mgupton
Line 3: Line 3:
   * process listing command   * process listing command
 An example of a good general purpose process listing including a long formatted date-time of the start time of the command and the elapsed time since the process was started. An example of a good general purpose process listing including a long formatted date-time of the start time of the command and the elapsed time since the process was started.
-<code>+<code bash>
 ps -eo pid,lstart,etime,cmd:128 ps -eo pid,lstart,etime,cmd:128
 +</code>
 +
 +  * List processes looking for specific process names.
 +  * Use a regex with a character class so that the grep command itself doesn't appear in the output of the //ps// command.
 +
 +<code bash>
 +ps -ef | grep -i "[f]oobar"
 +</code>
 +
 +  * List process hierarchy (tree)
 +<code bash>
 +ps -ejH
 </code> </code>
  
Line 13: Line 25:
  
 =====nohup===== =====nohup=====
-''nohup'' runs the specified program os that it will not receive hang-up signal when the terminal exists. Therefore the program will continue running like a daemon.+''nohup'' runs the specified program so that it will not receive hang-up signal when the terminal exists. Therefore the program will continue running like a daemon.
 <code> <code>
-nohup /path/to/script.py &+nohup python /path/to/script.py &
 </code> </code>
  • linux/process_management.1445953682.txt.gz
  • Last modified: 2015/10/27 13:48
  • by mgupton