This and much more is documented in the man page for ps. It provides a snapshot of the current processes. Here are a few examples of using the “ ps -ef | grep processname” command with different options and arguments to filter and display the output: Example 1: Find the ID of a Specific ProcessĪn example is considered to find out the process id of the specific process in the terminal. I could not find an option for shared memory, but I did find options for of total physical memory and the amount of swapspace that would be needed to swap out the process. The ps command on linux is one of the most basic commands for viewing the processes running on the system. How Does “ps -ef | grep processname” Command Work in Linux? New in version 3.7: -m option is introduced. The second part filters the output to show only the processes that match the given process name or pattern. New in version 3.2: -c option is introduced to execute commands as if given in a. In the “ ps -ef | grep processname” command, the first part of the command lists all the processes on the system.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |