Skip to content

ps

Display the top ten running processes - sorted by memory usage

ps aux | sort -nk +4 | tail

Format ps command output

ps ax -o "%p %U %u %x %c %n"
Check memory usage of tool
ps -o rss= -C dolphin \
    |(x=0; 
        while read rss; do 
            ((x+=$rss)); 
        done; 
        echo $((x/1024))) \
    |sed 's/$/MB/g'

  • Comments are closed on this article!

Last update: December 4, 2022 19:31:07