Linux command: PS (Process Status)

<p>If we pass arguments<strong>&nbsp;with a (-) dash</strong>&nbsp;then we will get the output in standard syntax. In contrast, if we pass arguments<strong>&nbsp;without any (-) dash</strong>&nbsp;then we will get output in BSD (Berkeley Software Distribution) syntax.</p> <blockquote> <p><strong><em>To view all running processes :&nbsp;</em></strong><code><strong><em>ps -e</em></strong></code><strong><em>&nbsp;or&nbsp;</em></strong><code><strong><em>ps -A</em></strong></code><br /> <strong><em>To view full formated list of all running processes:&nbsp;</em></strong><code><strong><em>ps -efL</em></strong></code></p> </blockquote> <pre> $ <strong>ps -efL | more </strong> # more for viewing from the beginning<strong>-------------------------------------------------------------------</strong>UID PID PPID LWP C NLWP STIME TTY TIME CMD root 1 0 1 1 1 03:44 ? 00:00:20 /sbin/init root 2 0 2 0 1 03:44 ? 00:00:00 [kthreadd] ... ...</pre> <p>We can use&nbsp;<code><strong>grep</strong></code><strong>&nbsp;</strong>along with&nbsp;<code><strong>ps</strong></code><strong>&nbsp;</strong>command to search for a specific process;<br /> Let&rsquo;s say we want to see our &ldquo;httpd&rdquo; server is running or not. We can do that in the following way:</p> <p><a href="https://medium.com/geekculture/linux-command-ps-process-status-8a1a76e7bafc"><strong>Read More</strong></a></p>
Tags: Linux Command