Interview Prep/Linux/Processes, Signals & systemd

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
All Linux questions Roadmap: Linux

More on Processes, Signals & systemd