Difference between revisions of "Miscellaneous Linux Commands"

From TheBestLinux.com
Jump to navigation Jump to search
Line 1: Line 1:
 +
<h2>
 +
Display all network interface names on any Linux system from the shell:
 +
<pre style="color:blue">ifconfig | grep BROADCAST | cut -d " " -f1 | sed 's/.$//' </pre>
 +
</h2>
 +
<h2>
 +
Sample output from my Fedora 20 VirtualBox server:
 +
<pre style="color:blue">em1
 +
<br />
 +
virbr0</pre>
 +
</h2>
 
<h2>
 
<h2>
 
The "ps" Process Command Syntax:
 
The "ps" Process Command Syntax:

Revision as of 13:39, 17 November 2014

Display all network interface names on any Linux system from the shell:
ifconfig | grep BROADCAST | cut -d " " -f1 | sed 's/.$//' 

Sample output from my Fedora 20 VirtualBox server:
em1
<br />
virbr0

The "ps" Process Command Syntax:


To show all executing processes:

$ ps ax


To show all processed running by a specific user(This example shows all processes running by the Apache WebServer):

$ ps -U apache