TLDR
Enter a command. For example: rgrep, useradd, cpufreq set, wpa_cli.

pidof

 
Gets the ID of a process using its name. More information: https://manned.org/pidof.
 
  • List all process IDs with given name:
     
    pidof {{bash}}
     
  • List a single process ID with given name:
     
    pidof -s {{bash}}
     
  • List process IDs including scripts with given name:
     
    pidof -x {{script.py}}
     
  • Kill all processes with given name:
     
    kill $(pidof {{name}})

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.