Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

find the process ID of a running process bash without pgrep

# Procedure to find process by name on Linux

# Open the terminal application.

# Type the pidof command as follows to find PID for firefox process:
$ pidof firefox

# Or use the ps command along with grep command as follows:
$ ps aux | grep -i <search term>

# To look up or single processes based on name use the following syntax:
$ pgrep firefox
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #find #process #ID #running #process #bash #pgrep
ADD COMMENT
Topic
Name
2+4 =