Chapter7 Monitoring and Managing Linux Processes
Chapter7 Monitoring and Managing Linux Processes
===============================================================================
Listing processes:
[root@master ~]# ps
[root@master ~]# ps aux
[root@master ~]# ps -aux
[root@master ~]# ps -aux | less
[root@master ~]# ps aux | grep -i syslogd
[root@master ~]# ls /proc/
[root@master ~]# ps aux | grep 264 (which shown in /proc)
[root@master ~]# pidof vim or [root@master ~]# pgrep vim
[root@master ~]# ps -l (To display Parent PID PPID)
[root@master ~]# ps -ef (To display Parent PID PPID and nice values)
[root@master ~]# fg %1
sleep 100000
OR
[root@master ~]# bg 5151
-The nice command is used to start a process with a user defined priority.
[root@master ~]# nice vim text & (Default is 10)
[1] 9182
-The renice command is used to change the priority of a currently running process.
[root@master ~]# renice 19 9182 (19 is the new value)
===============================================================================
Best wishes
Abeer :)