GNU/Linux Command – PIDOF

pidof — Find the Process ID of a running program
Pidof finds the process id’s (pids) of the named programs and display pids.
$ pidof login -- List the PID of all login processes.  $ pidof login mingetty -- List all login getty processes PIDs. $ pidof -s login -- Show PID of the process, which match 1st.  $ pidof -o 1000 login -- Omit the process with PID 1000.  $ pidof -o %PPID -- -bash -- Show PID of bash and omit PPID.  $ pidof -x -- Find what shell is running
Read: man pidof

Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: