ps auxEvery process on the system (BSD style): user, PID, CPU and memory share, start time and full command.
Reports a snapshot of running processes, with owners, resource usage and full command lines.
sudo apt install procpsps auxEvery process on the system (BSD style): user, PID, CPU and memory share, start time and full command.
ps -efEvery process (System V style) with parent PIDs — good for seeing what started what.
ps -ef --forestDraws the process tree, making a suspicious child under a web server easy to spot.
ps -u <user>Processes owned by one user.
Example
ps -u www-dataps -p <pid> -o pid,ppid,user,etime,cmdChosen columns for one process, including how long it has been running.
Example
ps -p 1337 -o pid,ppid,user,etime,cmdps -C <name>Processes by command name.
Example
ps -C sshdps aux --sort=-%cpu | headThe top CPU consumers.
ps aux --sort=-%mem | headThe top memory consumers.
ps -eo pid,user,lstart,cmdExact start time of each process — useful for incident timelines.
ps -eo pid,ppid,cmd --no-headersScriptable output without the header line.
ps -eLfShows individual threads.
ps aux | grep -v "\]quot;Hides kernel threads (shown in brackets) to focus on user-space processes.
ls -l /proc/<pid>/exeShows the binary a process is really running; “(deleted)” means it was removed from disk after starting — a common malware trick.
Example
ls -l /proc/1337/execat /proc/<pid>/cmdline | tr "\0" " "Reads the exact command line, arguments included.
Example
cat /proc/1337/cmdline | tr "\0" " "ls -l /proc/<pid>/cwdShows the working directory of a process.
Example
ls -l /proc/1337/cwdpgrep -a <name>Finds PIDs by name and shows their command lines.
Example
pgrep -a pythonA live, sortable view of processes and system load, CPU and memory.
Sends signals to processes — terminate gracefully, force-kill, reload or pause.
The modern Linux socket statistics tool: lists listening ports, established connections and the processes behind them, faster than netstat.
Shows total, used and available memory and swap.
Controls systemd: start, stop, enable and inspect services, timers and the boot target.
Prints the effective user name — the first question after landing a shell.