ps command is use to list processs running on your Linux sys

ps command is use to list processs running on your Linux system.   Provide three examples using the ps command. Use a redirection in at least one of your examples.

Solution

1) Display all the process:

ps ax

ps -ef

2) Display process by user:

To filter the processes by the owning user use the \"-u\" option followed by the username. Multiple usernames can be provided separated by a comma.

3)  shell script to find the running process for a given user and kill the process by getting the respective process ID.

ps command is use to list processs running on your Linux system. Provide three examples using the ps command. Use a redirection in at least one of your examples

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site