Recent Posts
- jQuery attrAugust 12, 2021
- jQuery mouseenterAugust 9, 2021
- jQuery ToggleclassAugust 6, 2021
- jQuery attr
Introduction to PS command in Linux
Linux process control could be implemented using the commands PS, kill, Bg, fg, jobs, nice, renice, grep and top . By using these commands any background daemon our program process can be effectively managed. The PS command is the process command which lists running processes and Damons and it is similar to task manager in Windows.
Syntax for PS command:
ps -[options]
Options Available for PS command
Common PS option available:
Option | Working | |
1 | e | e option it displays running Daemons. |
2 | f | with the F option it displays processes with full options. |
3 | l | with the L option it would list more information on those processes. |
4 | ef | we were to combine e and F together that would display all processes and Daemons on all TTYS. |
5 | a | a would list all processes that run on terminals. |
6 | x | X would list all processes that do not run on terminals. |
7 | aux | we were to combine a U and X that would list all processes running on or off terminals and it would format the results with additional information similar to a long listing. |
Examples of PS command in Linux
Given below are the examples:
Example #1
Code:
ps
Explanation:
Example #2
Code:
ps **
Explanation:
Example #3
Code:
ps a
Example #4
Code:
ps u
Example #5
Code:
ps aux|less
Example #6
Code:
ps -f
Explanation:
Example #7
Code:
ps -ef
Explanation:
Example #8
Code:
ps -l
Explanation:
MCP is the right place for best computer Courses institute and advance Courses in Mohali and Chandigarh.The Complete Programming Academy can change your life – providing you with the knowledge, skills, and performance in a second language which helps you to excel in your job.You can also Contact us for 6 month industrial training institute in Mohali.