ps aux --sort +rss/rss根據內存正序排
ps aux --sort -rss 逆序
ps aux --sort -pid/pid
ps aux --sort %cpu/-%cpu 根據cpu排序
關於ps命令顯示不全的解決方法:ps aux | more ; ps auxww 后面的w要寫兩遍
man ps看下幫助信息:
-w Use 132 columns to display information, instead of the default which is your window size. If the -w option is specified more than once, ps will use as many columns as
necessary without regard for your window size. When output is not to a terminal, an unlimited number of columns are always used.
