ps axo pid,ppid,rss,vsz,nlwp,cmd --sort=-rss,-vsz
Output columns:
- pid - Process ID
- ppid - Parent Process ID
- rss - Resident Set Size - physical memory
- vsz - Virtual Set Size - virtual memory
- nlwp - Number of Light Weight Processes - thread count
- cmd - Command
- --sort
- specify sorting order. Sorting syntax is [+|-]key[,[+|-]key[,...]]
- Choose a multi-letter key from the STANDARD FORMAT SPECIFIERS section.
- The "+" is optional since default direction is increasing numerical or lexicographic order.
Great Post.
ReplyDeletealso, join Linux course in Pune