What is the difference between `ps aux` and `ps -ef`?
IntermediateConceptProcesses, Signals & systemd
Answer
Both list all processes. ps aux is BSD style and shows %CPU, %MEM, VSZ, RSS and STAT. ps -ef is System V style and shows UID, PID, PPID and start time. For scripts, choose columns explicitly:
ps -eo pid,ppid,user,%cpu,%mem,rss,stat,etime,cmd --sort=-%mem | head
More on Processes, Signals & systemd
What is the difference between a program, a process and a thread?BeginnerHow are new processes created in Linux?IntermediateWhat is a zombie process, and how do you get rid of it?IntermediateWhat is an orphan process?BeginnerExplain the process states shown in ps (R, S, D, T, Z).IntermediateWhy can't you kill a process in D state?Advanced