How to show a running process name and its process ID (PID)

Find the process ID (PID) and process name on Linux with the help of the pgrep command.


Search for PID and process name

How to kill a running process by its name

Find and stop a running process on Linux by searching for its name using the killall or pkill command.


Stop a process by searching for its name