ps --sort排序功能


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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM