{"id":8126,"date":"2021-03-12T12:57:10","date_gmt":"2021-03-12T09:57:10","guid":{"rendered":"https:\/\/kifarunix.com\/?p=8126"},"modified":"2024-03-19T19:20:20","modified_gmt":"2024-03-19T16:20:20","slug":"example-usage-of-ps-command-in-linux","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/example-usage-of-ps-command-in-linux\/","title":{"rendered":"Example Usage of ps Command in Linux"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"965\" height=\"260\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/example-usage-ps-command.png\" alt=\"Example Usage of ps Command in Linux\" class=\"wp-image-8171\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/example-usage-ps-command.png?v=1615542960 965w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/example-usage-ps-command-768x207.png?v=1615542960 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/example-usage-ps-command-150x40.png?v=1615542960 150w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/example-usage-ps-command-300x81.png?v=1615542960 300w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/03\/example-usage-ps-command-696x188.png?v=1615542960 696w\" sizes=\"(max-width: 965px) 100vw, 965px\" \/><\/figure><\/div>\n\n\n<p>This guide will take you through various example usage of  <code>ps<\/code> command in Linux\/Unix system.<code> ps<\/code>, an acronym for<strong> Processes Status<\/strong> is a utility used to display running processes on Linux\/Unix systems system. It reports a snapshot of the current system processes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Syntax: ps [options]<\/code><\/pre>\n\n\n\n<p><strong>ps accepts three types of options:<\/strong><\/p>\n\n\n\n<p id=\"block-6eb2bcd9-6317-4a80-89a6-2021e107a6f6\"> 1.UNIX options, which may be grouped and must be preceded by a dash (-)<br> 2. BSD options, which may be grouped and must not be used with a dash.<br> 3. GNU long options, which are preceded by two dashes (&#8211;)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using of ps Command in Linux<\/h2>\n\n\n\n<p>1. Display processes associated with the current shell.<\/p>\n\n\n\n<p>When run without any arguments, <code>ps<\/code> command displays the processes associated with the current shell.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code> ps<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code> PID    TTY        TIME   CMD\n1446588 pts\/0    00:00:00 bash\n1570347 pts\/0    00:00:00 ps<\/code><\/pre>\n\n\n\n<p>By default you will obtain the following information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong> PID<\/strong> The process ID of the process<\/li>\n\n\n\n<li><strong>TTY<\/strong> The name of the terminal session (shell) that the process is running within<\/li>\n\n\n\n<li><strong>TIME<\/strong> The amount of CPU time used by the process<\/li>\n\n\n\n<li><strong>CMD<\/strong> The name of the command that was entered to create the process<\/li>\n<\/ul>\n\n\n\n<p><strong>2.<\/strong> To display all processes running on the system, type <code>ps -e<\/code> or <code>ps -A<\/code><strong> <\/strong>command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -e<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>    PID TTY         TIME  CMD\n      1 ?        00:00:23 systemd\n      2 ?        00:00:00 kthreadd\n      3 ?        00:00:00 rcu_gp\n      4 ?        00:00:00 rcu_par_gp\n      6 ?        00:00:00 kworker\/0:0H-kblockd\n      8 ?        00:00:00 mm_percpu_wq\n      9 ?        00:00:01 ksoftirqd\/0\n     10 ?        00:00:56 rcu_sched\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -A <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>    PID TTY         TIME  CMD\n      1 ?        00:00:23 systemd\n      2 ?        00:00:00 kthreadd\n      3 ?        00:00:00 rcu_gp\n      4 ?        00:00:00 rcu_par_gp\n      6 ?        00:00:00 kworker\/0:0H-kblockd\n      8 ?        00:00:00 mm_percpu_wq\n      9 ?        00:00:01 ksoftirqd\/0\n     10 ?        00:00:56 rcu_sched<\/code><\/pre>\n\n\n\n<p><strong>3.<\/strong>To display full-format listing, type <code>ps -ef<\/code> or<code> ps -eF <\/code>command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -ef<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY         TIME  CMD\nroot           1       0  0 11:10 ?        00:00:23 \/sbin\/init splash\nroot           2       0  0 11:10 ?        00:00:00 &#91;kthreadd]\nroot           3       2  0 11:10 ?        00:00:00 &#91;rcu_gp]\nroot           4       2  0 11:10 ?        00:00:00 &#91;rcu_par_gp]\nroot           6       2  0 11:10 ?        00:00:00 &#91;kworker\/0:0H-kblockd]\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -eF<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C    SZ   RSS PSR STIME TTY         TIME  CMD\nroot           1       0  0 42347 10916   2 11:10 ?        00:00:23 \/sbin\/init splash\nroot           2       0  0     0     0   2 11:10 ?        00:00:00 &#91;kthreadd]\nroot           3       2  0     0     0   0 11:10 ?        00:00:00 &#91;rcu_gp]\nroot           4       2  0     0     0   0 11:10 ?        00:00:00 &#91;rcu_par_gp]\nroot           6       2  0     0     0   0 11:10 ?        00:00:00 &#91;kworker\/0:0H-kblockd]<\/code><\/pre>\n\n\n\n<p>The addition information include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>UID<\/strong> The user ID of the process\u2019s owner<\/li>\n\n\n\n<li><strong>PPID<\/strong> The PID of the process\u2019s parent process<\/li>\n\n\n\n<li><strong>C<\/strong> The amount of processor time utilized by the process<\/li>\n\n\n\n<li><strong>RSS<\/strong> How much RAM is utilized at the time the&nbsp;command&nbsp;is output<\/li>\n\n\n\n<li><strong>PSR<\/strong> Processor that process is currently assigned to<\/li>\n\n\n\n<li><strong>STIME<\/strong> The time that the process started<\/li>\n<\/ul>\n\n\n\n<p><strong>4.<\/strong> To display long format of the <code>ps<\/code> output, type<code> ps -efl<\/code> or<code> ps -eFl<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -efl<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>F S UID          PID    PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY         TIME  CMD\n4 S root           1       0  0  80   0 - 42347 -      11:10 ?        00:00:25 \/sbin\/init splash\n1 S root           2       0  0  80   0 -     0 -      11:10 ?        00:00:00 &#91;kthreadd]\n1 I root           3       2  0  60 -20 -     0 -      11:10 ?        00:00:00 &#91;rcu_gp]\n1 I root           4       2  0  60 -20 -     0 -      11:10 ?        00:00:00 &#91;rcu_par_gp]\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -eFl<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>F S UID          PID    PPID  C PRI  NI ADDR SZ WCHAN    RSS PSR STIME TTY         TIME  CMD\n4 S root           1       0  0  80   0 - 42347 -      10916   1 11:10 ?        00:00:25 \/sbin\/init splash\n1 S root           2       0  0  80   0 -     0 -          0   2 11:10 ?        00:00:00 &#91;kthreadd]\n1 I root           3       2  0  60 -20 -     0 -          0   0 11:10 ?        00:00:00 &#91;rcu_gp]\n1 I root           4       2  0  60 -20 -     0 -          0   0 11:10 ?        00:00:00 &#91;rcu_par_gp]<\/code><\/pre>\n\n\n\n<p>We obtain the following information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>F<\/strong> The flags associated with the process. <\/li>\n\n\n\n<li><strong>S <\/strong>The state of the process. This column uses the following codes:\n<ul class=\"wp-block-list\">\n<li><strong>D<\/strong> Uninterruptible sleep<\/li>\n\n\n\n<li><strong>R<\/strong> Running<\/li>\n\n\n\n<li><strong> S<\/strong> Interruptible sleep<\/li>\n\n\n\n<li><strong> T<\/strong> Stopped or traced<\/li>\n\n\n\n<li><strong>Z<\/strong> Zombie<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>PRI <\/strong>The priority of the process.<\/li>\n\n\n\n<li><strong>NI<\/strong> The nice value of the process.<\/li>\n\n\n\n<li><strong>ADDR<\/strong> The memory address of the process.<\/li>\n\n\n\n<li><strong>SZ<\/strong> The size of the process.<\/li>\n\n\n\n<li><strong>WCHAN<\/strong> The name of the kernel function in which the process is sleeping. A dash (\u2013) in this column means the process is currently running.<\/li>\n<\/ul>\n\n\n\n<p><strong>5.<\/strong>To display all processes in <code>Bsd<\/code> format, type<code> ps au<\/code> or <code>ps aux<\/code> command. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code> ps au<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\nfrank       1975  0.0  0.0 166544  6572 tty2     Ssl+ 09:21   0:00 \/usr\/lib\/gdm3\/gdm-x-session --register-session --run-script i3\nfrank       1978  7.6  0.5 735048 42868 tty2     Sl+  09:21   1:01 \/usr\/lib\/xorg\/Xorg vt2 -displayfd 3 -auth \/run\/user\/1000\/gdm\/Xauthority -background none -noreset -ke\nfrank       2001  0.0  0.1  35416 12864 tty2     S+   09:21   0:00 i3<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>  ps aux<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\nroot           1  0.2  0.1 168096 11876 ?        Ss   09:18   0:02 \/sbin\/init splash\nroot           2  0.0  0.0      0     0 ?        S    09:18   0:00 &#91;kthreadd]\nroot           3  0.0  0.0      0     0 ?        I&lt;   09:18   0:00 &#91;rcu_gp]\nroot           4  0.0  0.0      0     0 ?        I&lt;   09:18   0:00 &#91;rcu_par_gp]<\/code><\/pre>\n\n\n\n<p><strong>6.<\/strong>To display all processes whose effective user ID <code>(EUID)<\/code> or name is in the userlist, type<code> ps -fu frank<\/code> or <code>ps -fu 1000<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -fu frank<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code> UID          PID    PPID  C STIME TTY          TIME CMD\nfrank       1880       1  0 09:21 ?        00:00:00 \/lib\/systemd\/systemd --user\nfrank       1884    1880  0 09:21 ?        00:00:00 (sd-pam)\nfrank       1896    1880  1 09:21 ?        00:00:18 \/usr\/bin\/pulseaudio --daemonize=no --log-target=journal<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code> ps -fu 1000<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY          TIME CMD\nfrank       1880       1  0 09:21 ?        00:00:00 \/lib\/systemd\/systemd --user\nfrank       1884    1880  0 09:21 ?        00:00:00 (sd-pam)\nfrank       1896    1880  1 09:21 ?        00:00:18 \/usr\/bin\/pulseaudio --daemonize=no --log-target=journal<\/code><\/pre>\n\n\n\n<p><strong>7.<\/strong> To display processes whose real user ID <code>(RUID)<\/code> or name is in the userlist, type <code>ps -fU frank<\/code> or <code>ps -fU 1000 <\/code>command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -fU frank<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY          TIME CMD\nfrank       1880       1  0 09:21 ?        00:00:00 \/lib\/systemd\/systemd --user\nfrank       1884    1880  0 09:21 ?        00:00:00 (sd-pam)\nfrank       1896    1880  1 09:21 ?        00:00:20 \/usr\/bin\/pulseaudio --daemonize=no --log-target=journal<\/code><\/pre>\n\n\n\n<p><strong>8.<\/strong> To display all processes by real group ID <code>(RGID)<\/code> or name, type <code>ps -fG dip<\/code> or <code>ps -fG 30<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -fG dip<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY          TIME CMD\nlibvirt+    1376       1  0 09:20 ?        00:00:00 \/usr\/sbin\/dnsmasq --conf-file=\/var\/lib\/libvirt\/dnsmasq\/default.conf --leasefile-ro --dhcp-script=\/usr\/lib\/libvirt\/li<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code> ps -fG 30<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY          TIME CMD\nlibvirt+    1376       1  0 09:20 ?        00:00:00 \/usr\/sbin\/dnsmasq --conf-file=\/var\/lib\/libvirt\/dnsmasq\/default.conf --leasefile-ro --dhcp-script=\/usr\/lib\/libvirt\/li\n\u276f ps -fG dip<\/code><\/pre>\n\n\n\n<p><strong>9. <\/strong>To display all processes by effective group ID <code>(EGID)<\/code> or name, type <code>ps -fg dip<\/code> or <code>ps -fg 30 <\/code>command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -fg dip<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY          TIME CMD\nlibvirt+    1376       1  0 09:20 ?        00:00:00 \/usr\/sbin\/dnsmasq --conf-file=\/var\/lib\/libvirt\/dnsmasq\/default.conf --leasefile-ro --dhcp-script=\/usr\/lib\/libvirt\/li<\/code><\/pre>\n\n\n\n<p><strong>10.<\/strong> To select processes by <code>PID<\/code>, type <code>ps -fp 3511<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -fp 3511<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY          TIME CMD\nfrank       3511       1  0 09:21 pts\/0    00:00:00 \/usr\/bin\/zsh<\/code><\/pre>\n\n\n\n<p><strong>11.<\/strong> To select a processes by <code>PPID<\/code>, type <code>ps -f --ppid 3890<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -f --ppid 3890<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY          TIME CMD\nfrank       4246    3890  0 09:22 ?        00:00:00 \/opt\/google\/chrome\/chrome --type=utility --utility-sub-type=storage.mojom.StorageService --field-trial-handle=132069\nfrank       4430    3890  0 09:22 ?        00:00:18 \/opt\/google\/chrome\/chrome --type=renderer --field-trial-handle=13206994095123897317,8220222987148921566,131072 --lan\nfrank       4432    3890  0 09:22 ?        00:00:01 \/opt\/google\/chrome\/chrome --type=renderer --field-trial-handle=13206994095123897317,8220222987148921566,131072 --lan<\/code><\/pre>\n\n\n\n<p><strong>12.<\/strong> To display <code>ASCII<\/code> art process tree, type <code>ps -ef --forest<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -ef --forest<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>root        1856     976  0 09:21 ?        00:00:00  \\_ gdm-session-worker &#91;pam\/gdm-password]\nfrank       1975    1856  0 09:21 tty2     00:00:00      \\_ \/usr\/lib\/gdm3\/gdm-x-session --register-session --run-script i3\nfrank       1978    1975  6 09:21 tty2     00:05:17          \\_ \/usr\/lib\/xorg\/Xorg vt2 -displayfd 3 -auth \/run\/user\/1000\/gdm\/Xauthority -background none -noreset -keept\nfrank       2001    1975  0 09:21 tty2     00:00:01          \\_ i3\nfrank       2066    2001  0 09:21 ?        00:00:00              \\_ \/usr\/bin\/ssh-agent \/usr\/bin\/im-launch i3<\/code><\/pre>\n\n\n\n<p><strong>13.<\/strong> To display a process tree for a given process, type <code>ps -ef --forest | grep -v grep | grep zsh<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -ef --forest | grep -v grep | grep zsh<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>frank       3458    3318  0 09:21 pts\/0    00:00:10      \\_ \/usr\/bin\/zsh\nfrank       3511       1  0 09:21 pts\/0    00:00:00 \/usr\/bin\/zsh\nfrank       3590       1  0 09:21 pts\/0    00:00:00 \/usr\/bin\/zsh\nfrank       3591       1  0 09:21 pts\/0    00:00:00 \/usr\/bin\/zsh<\/code><\/pre>\n\n\n\n<p><strong>14.<\/strong> To select processes associated with the terminal given in<strong> <\/strong><code>tty <\/code>list, type <code>ps -t pts\/0 <\/code>commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -t pts\/0<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>PID TTY          TIME  CMD\n3458 pts\/0    00:00:12 zsh\n3511 pts\/0    00:00:00 zsh\n3590 pts\/0    00:00:00 zsh\n3591 pts\/0    00:00:00 zsh\n3615 pts\/0    00:00:00 gitstatusd-linu\n292279 pts\/0  00:00:00 sudo<\/code><\/pre>\n\n\n\n<p><strong>15.<\/strong> To select processes whose <code>PID<\/code> appear in pidlist, type<code> ps -fp 1903,1947,3362<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -fp 1903,1947,3362<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>UID          PID    PPID  C STIME TTY          TIME CMD\nfrank       1903    1880  0 09:21 ?        00:00:00 \/usr\/bin\/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only\nfrank       1947    1880  0 09:21 ?        00:00:00 \/usr\/libexec\/goa-identity-service\nfrank       3362    1880  0 09:21 ?        00:00:00 \/usr\/libexec\/at-spi-bus-launcher<\/code><\/pre>\n\n\n\n<p><strong>16.<\/strong> To display<code> PID<\/code> of a given process name, type<code> ps -C compton -o pid=<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -C compton -o pid=<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code> 2095<\/code><\/pre>\n\n\n\n<p><strong>17.<\/strong> To display <code>NAME<\/code> of a given <code>PID<\/code>, type<strong> <\/strong><code>ps -q 2095 -o comm=<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -q 2095 -o comm=<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>compton<\/code><\/pre>\n\n\n\n<p><strong>18.<\/strong> To dispaly<strong> <\/strong><code>PID,PPID,User name<\/code> and <code>Command<\/code> of a process, type<code> ps -eo pid,ppid,user,cmd<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -eo pid,ppid,user,cmd<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>PID     PPID  USER    CMD\n1982       2 root     &#91;krfcommd]\n2001    1975 frank    i3\n2066    2001 frank    \/usr\/bin\/ssh-agent \/usr\/bin\/im-launch i3\n2084       1 frank    \/bin\/sh -c dunst \n2087    2084 frank    dunst\n2095       1 frank    compton\n2099       1 frank    \/bin\/sh -c i3bar  --bar_id=bar-0 --socket=\"\/run\/user\/1000\/i3\/ipc-socket.2001\"<\/code><\/pre>\n\n\n\n<p><strong>19.<\/strong> To display a specific process by its name, type <code>ps -C zsh<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -C zsh<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>PID TTY          TIME  CMD\n3458 pts\/0    00:00:12 zsh\n3511 pts\/0    00:00:00 zsh\n3590 pts\/0    00:00:00 zsh\n3591 pts\/0    00:00:00 zsh<\/code><\/pre>\n\n\n\n<p><strong>20.<\/strong> To display execution time of a process, type<code> ps -eo comm,etime,user | grep terminator<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -eo comm,etime,user | grep terminator<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>terminator         02:26:03 frank<\/code><\/pre>\n\n\n\n<p><strong>21.<\/strong> To display security context (<code>for SELinux<\/code>), type<code> ps -eM<\/code> or <code>ps -e --context<\/code> command. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -eM<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>LABEL                               PID TTY          TIME CMD\nunconfined                            1 ?        00:00:10 systemd\nunconfined                            2 ?        00:00:00 kthreadd\nunconfined                            3 ?        00:00:00 rcu_gp<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps -e --context <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>PID CONTEXT                         COMMAND\n1 unconfined                      \/sbin\/init splash\n2 unconfined                      &#91;kthreadd]\n3 unconfined                      &#91;rcu_gp]\n4 unconfined                      &#91;rcu_par_gp]\n<\/code><\/pre>\n\n\n\n<p>This is all about our guide on the usage of ps Command in Linux\/Unix system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Reference<\/h3>\n\n\n\n<p>For more information about <code>ps<\/code> command feel free to check <code><strong>man<\/strong><\/code> and <code><strong>info ps<\/strong><\/code> pages respectively. If you have other <code>ps<\/code> command usage examples drop a comment.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>man ps<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>info ps<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Other Tutorials<\/h3>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/upgrade-a-single-package-on-centos-fedora\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Upgrade a Single Package on CentOS\/Fedora<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-cheat-command-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install Cheat Command on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/create-user-account-using-useradd-adduser-commands-in-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Create User Account using useradd\/adduser commands in Linux<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will take you through various example usage of ps command in Linux\/Unix system. ps, an acronym for Processes Status is a utility used<\/p>\n","protected":false},"author":6,"featured_media":8171,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[49,121],"tags":[3234,1107,3237,3240,3235,50,3236,3239],"class_list":["post-8126","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-command-cheatsheets","category-howtos","tag-how-to-use-ps-command-in-linux","tag-linux","tag-linux-ps-command","tag-linux-running-processes","tag-list-running-processes-with-ps-command-in-linux","tag-ps","tag-ps-command","tag-use-ps-command-to-list-running-processes-in-linux","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8126"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=8126"}],"version-history":[{"count":23,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8126\/revisions"}],"predecessor-version":[{"id":21911,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/8126\/revisions\/21911"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/8171"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=8126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=8126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=8126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}