what process consuming RAM 1

what process consuming RAM

ps -o pid,user,%mem,command ax | sort -b -k3 -r

Here is what the above code is Doing:
1. ps -o pid,user,%mem,command ax
– ps is the process status command
– -o is the option to specify the output format
– pid,user,%mem,command are the fields we want to see
– ax is the option to show all processes owned by all users
2. sort -b -k3 -r
– sort is the command to sort the output
– -b is the option to ignore leading blanks
– -k3 is the option to sort by the third field
– -r is the option to sort in reverse order

Similar Posts