In at the moment’s article, we shall be explaining the “ps” command, which is the command we use to observe working processes in Linux.
1. When run with out parameters, it lists the working processes of the present session.
# ps PID TTY TIME CMD 10137 pts/5 00:00:00 ps 21871 pts/5 00:00:00 bash |
2. Utilization of ps command with parameters;
ps -ef
ps -elf (Offers detailed details about operations.)
3. If we wish to get details about a single course of.
$ ps -elf | grep mmon
0 S oracle 10332 10150 0 78 0 – 15297 pipe_w 13:22 pts/5 00:00:00 grep mmon
0 S oracle 15242 1 0 75 0 – 1611264 – 2013 ? 00:07:44 ora_mmon_taptest
$ ps –ef | grep mmon oracle 10312 10150 0 13:22 pts/5 00:00:00 grep mmon oracle 15242 1 0 2013 ? 00:07:44 ora_mmon_taptest $ ps –elf | grep mmon 0 S oracle 10332 10150 0 78 0 – 15297 pipe_w 13:22 pts/5 00:00:00 grep mmon 0 S oracle 15242 1 0 75 0 – 1611264 – 2013 ? 00:07:44 ora_mmon_taptest |
4. If we are not looking for our course of search outcomes to seem.
$ ps –elf | grep mmon | grep –v grep 0 S oracle 15242 1 0 75 0 – 1611264 – 2013 ? 00:07:44 ora_mmon_taptest |
5. Simplified model of the ps command.
$ pgrep –lf mmon 15242 ora_mmon_taptest |