3 ms·
[Edit oh gads I see now the commands are in text boxes and the full command is not visible. It is "ps aux | head -1 && ps aux | sort -k 4 -nr | head" which mayb
by njharman 14y ago
[Edit oh gads I see now the commands are in text boxes and the full command is not visible. It is "ps aux | head -1 && ps aux | sort -k 4 -nr | head" which maybe correct is even more ridiculous.]
> ps aux | head -1 && ps aux | sort
Is a wasteful construct and doesn't even do what is claimed "List the top 10 memory hogs". Depending on what you consider "memory" something like this is shorter and correct.
ps aux --sort=-resident|head -11
Other errors: They list same command "du -hs" for twice. I believe they meant "df -h" for "overview of all disks". Although, it's correctly overview of mounted file systems.
- sudara 14y agoThanks! I've updated that with your version, much MUCH more concise. (Also fixed the df thing, definitely copy paste error!)