Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

find the process ID of a running process bash

# 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
ADD COMMENT
Topic
Name
9+5 =