![]() ![]() Often ps is used with grep like “ps -aux | grep command” to get the list of process with the given command.īut ps command itself has an option to achieve the same. The example below displays all the process that are owned by user wwwrun, or postfix. When you have multiple username, separate them using a comma. Use -u option to displays the process that belongs to a specific username. List the Process based on the UID and Commands (ps -u, ps -C) In case of BSD machines, you can use ‘ps -aux’ will give the details about all the process as shown above. The following example shows the options of ps command to get all the processes. Its a commonly used example with a ps command to list down all the process which are currently running in a machine. List Currently Running Processes (ps -ef, ps -aux) To monitor and control the processes, Linux provides lot of commands such as ps, kill, killall, nice, renice and top commands. ![]() This article explains 7 practical usages of ps command and its options. Use ps command to find out what processes are running on your system. Linux is a multitasking operating system, which means that more than one process can be active at once. Process is a running instance of a program. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |