Difference between revisions of "Miscellaneous Linux Commands"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | < | + | <h3> |
+ | Shell Commands | ||
+ | </h3> | ||
Display all network interface names on any Linux system from the shell: | 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> | <pre style="color:blue">ifconfig | grep BROADCAST | cut -d " " -f1 | sed 's/.$//' </pre> | ||
− | |||
− | |||
Sample output from my Fedora 20 VirtualBox server: | Sample output from my Fedora 20 VirtualBox server: | ||
<pre style="color:blue">em1 | <pre style="color:blue">em1 | ||
− | |||
virbr0</pre> | virbr0</pre> | ||
− | < | + | <h3> |
− | + | The "ps" Process Command Syntax | |
− | The "ps" Process Command Syntax | + | </h3> |
− | </ | ||
<br /> | <br /> | ||
To show all executing processes: | To show all executing processes: |
Revision as of 13:41, 17 November 2014
Shell Commands
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 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