USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND Given that little piece of background information, here's how we can sort the ps command output by memory usage: Sort Linux `ps` output by memory (RAM), from high to low The "+" is optional since default direction is increasing numerical or Sorting syntax is keykey]Ĭhoose a multi-letter key from the STANDARD FORMAT SPECIFIERS section. Here’s a quick look at the -sort information from the ps command man page: The `ps -sort` optionīefore I get started, it’s important to note that the Linux ps command supports a -sort argument, and that argument takes a number of key values, and those keys indicate how you want to support the ps output. In this article I’ll show how to sort the Linux ps command output, without using the Linux sort command. Linux ps command FAQ: Can you share some examples of how to sort the ps command?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |