
The process on Linux system can be the command that you use, or the program that run on your Linux machine. There is many command that we can use to check the active process... but on this article we show how to check active running process using ps command ( ps command, report a snapshot of the current processes)
Ps command without any option:
# ps
[root@fedora ~]# ps
PID TTY TIME CMD
2708 pts/1 00:00:00 bash
2958 pts/1 00:00:00 ps
[root@fedora ~]#
To see every process on the system using standard syntax:
# ps -e
# ps -ef
# ps -eF
# ps -ely
ps -ely Command example:
[root@fedora ~]# ps -ely
S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD
S 0 1 0 0 80 0 740 487 select ? 00:00:04 init
S 0 2 0 0 75 -5 0 0 kthrea ? 00:00:00 kthreadd
S 0 3 2 0 -40 - 0 0 migrat ? 00:00:00 migration/0
S 0 4 2 0 75 -5 0 0 ksofti ? 00:00:00 ksoftirqd/0
S 0 5 2 0 -40 - 0 0 watchd ? 00:00:00 watchdog/0
.........
S 0 2618 1 0 80 0 4424 4260 sys_po ? 00:00:00 consolehelper-g
S 0 2619 2618 0 80 0 1288 1495 wait ? 00:00:00 userhelper
S 0 2622 2619 0 80 0 29240 16876 sys_po ? 00:00:02 /usr/sbin/system
R 0 2702 1944 0 80 0 2868 2514 - ? 00:00:01 sshd
S 0 2704 1944 0 80 0 2848 2514 select ? 00:00:00 sshd
S 0 2708 2702 0 80 0 1528 1200 wait pts/1 00:00:00 bash
S 0 2752 2704 0 80 0 1292 1200 unix_s ? 00:00:00 bash
R 0 2957 2708 5 80 0 808 1137 - pts/1 00:00:00 ps
[root@fedora ~]#
To see every process on the system using BSD syntax:
# ps ax
# ps axu
ps axu command example:
[root@fedora ~]# ps axu
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.0 1948 740 ? Ss 05:08 0:04 /sbin/init
root 2 0.0 0.0 0 0 ? S< 05:08 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 05:08 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? S< 05:08 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 05:08 0:00 [watchdog/0]
...........................
root 2618 0.0 0.5 17040 4424 ? S 05:26 0:00 /usr/bin/system-config-network
root 2619 0.0 0.1 5980 1288 ? S 05:26 0:00 /usr/sbin/userhelper -w system-config-network
root 2622 0.1 3.5 67504 29236 ? S 05:26 0:02 /usr/bin/python /usr/sbin/system-config-network-gui
root 2702 0.0 0.3 10056 2868 ? Rs 05:27 0:01 sshd: root@pts/1
root 2704 0.0 0.3 10056 2848 ? Ss 05:28 0:00 sshd: root@notty
root 2708 0.0 0.1 4800 1524 pts/1 Ss 05:28 0:00 -bash
root 2752 0.0 0.1 4800 1292 ? Ss 05:28 0:00 -bash
root 2900 6.0 0.1 4596 940 pts/1 R+ 05:54 0:00 ps axu
[root@fedora ~]#
5 comments:
Excellent blog. Your blog gives lots of information, keep up the good work and share more..Java Projects Center in Chennai | Java Projects Center in Velachery
Nice post.It was really effective..Thank you for sharing..Dot Net Project Center in Chennai | Dot Net Project Center in Velachery
17-Tracking.com/ helps you to Track your packages via all in one global package tracking
Good information.
B.com Integrated Courses | Avinash College of commerce
Download SB Game Hacker Apk for Android Latest Version. Hack any Android game with Game Hacker
Post a Comment