$ ps aux | sort -nk +4 | tailThis is certainly not the best way to display the top ten processes that consume the most memory, but, hey, it works.
It takes the output of ps aux, sorts it by 4th column numerically and then uses tail to output the last then lines which happen to be the processes with the biggest memory consumption.
If I was to find out who consumes the most memory, I'd simply use htop or top and not ps.










