Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 244 Bytes

get-process-id-by-name.md

File metadata and controls

11 lines (7 loc) · 244 Bytes

Get Process ID By Name

You can get the PID for a running process by name.

For example, to get the PID for Google Chrome use the following:

ps -A | grep -m1 chrome | awk '{print $1}'

The same command will also work on Linux.