0% found this document useful (0 votes)
5 views

Lab 3 Process

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Lab 3 Process

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

BS (Information Technology) 2023

Lab 03: Managing Process and Services


PS
PS - This command is used list/see the processes that are running on the Linux
system/server. Process is a running instance of a program. There are many commands
which are used to monitor and control these processes in Linux and ps is one such
command which is used to monitor them. Below are some of the examples which show their
practical applications.
• ps -ef - List all the processes that are currently running, where -e is used to display all the
process, -f is used to display full format listing
• ps -ef | grep ssh - List all the process which are related to ssh

• ps -f -u vagrant,postfix - List the process related users vagrant and postfix. You can use

UID too to find the process related to that particular user like (#ps -f -u 500)
• ps -f -p 1307 - List the process which has PID of 1307. You can list multiple process by
listing multiple PIDs separated by commas in a single command
• ps -f -ppid 1295 - List the process which has PPID of 1295

15
BS (Information Technology) 2023

16
BS (Information Technology) 2023

17
BS (Information Technology) 2023

18
BS (Information Technology) 2023

19
BS (Information Technology) 2023

20

You might also like