Difference between revisions of "LinuxCommands"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 7: Line 7:
 
= System Information  =
 
= System Information  =
  
#'''arch''': Show the machine arch.
+
#'''arch''': Show the machine arch.  
 
#'''uname -m''': Show machine arch.
 
#'''uname -m''': Show machine arch.
 
+
<pre style="line-height: 11px; font-size: 11px;"><tt>[jdoe@localhost ~]$ arch</tt>
{| cellspacing="0" cellpadding="5" border="2" style="font-size: 13px; color: rgb(144, 238, 144); background-color: black;"
 
|-
 
|
 
<tt>[jdoe@localhost ~]$ arch</tt>
 
  
 
<tt>x86_64</tt>
 
<tt>x86_64</tt>
Line 19: Line 15:
 
<tt>[jdoe@localhost ~]$ uname -m</tt>
 
<tt>[jdoe@localhost ~]$ uname -m</tt>
  
<tt>x86_64</tt><tt><br></tt>
+
<tt>x86_64</tt></pre>  
 
+
#'''uname -r''': Show the kernel version.  
|}
 
 
 
#'''uname -r''': Show the kernel version.
 
 
#'''cat /proc/version''': Show kernel version (extra information).
 
#'''cat /proc/version''': Show kernel version (extra information).
 
+
<pre>
{| cellspacing="0" cellpadding="5" border="2" style="font-size: 13px; color: rgb(144, 238, 144); background-color: black;"
 
|-
 
|
 
 
[jdoe@localhost ~]$ uname -r
 
[jdoe@localhost ~]$ uname -r
  
Line 35: Line 25:
 
[jdoe@localhost ~]$ cat /proc/version&nbsp;
 
[jdoe@localhost ~]$ cat /proc/version&nbsp;
  
Linux version 3.11.10-301.fc20.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC) ) #1 SMP Thu Dec 5 14:01:17 UTC 2013<br>
+
Linux version 3.11.10-301.fc20.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC) ) #1 SMP Thu Dec 5 14:01:17 UTC 2013
 
+
</pre>  
|}
+
#<pre>'''dmidecode -q''': Show the system hardware information.</pre>
 
+
#<pre>'''hdparm -i /dev/hda''': Show harddisk information.</pre>
#'''dmidecode -q''': Show the system hardware information.
+
#<pre>'''hdparm -tT /dev/sda''': Do a read test.</pre>
#'''hdparm -i /dev/hda''': Show harddisk information.
+
#<pre>'''cat /proc/cpuinfo''': Show CPU information.</pre>
#'''hdparm -tT /dev/sda''': Do a read test.
+
#<pre>'''cat /proc/interrupts''': Show IRQ information.</pre>
#'''cat /proc/cpuinfo''': Show CPU information.
+
#<pre>'''cat /proc/meminfo''': Show Memory status.</pre>
#'''cat /proc/interrupts''': Show IRQ information.
+
#<pre>'''cat /proc/swaps''': Show swap files.</pre>  
#'''cat /proc/meminfo''': Show Memory status.
+
#<pre>'''cat /proc/net/dev''': Show Network adapters and statistics.</pre>
#'''cat /proc/swaps''': Show swap files.<br>
+
#<pre>'''cat /proc/mounts''': Show mounted volumes in the system.</pre>
#'''cat /proc/net/dev''': Show Network adapters and statistics.
+
#<pre>'''lspci -tv''': Show PCI devices.</pre>
#'''cat /proc/mounts''': Show mounted volumes in the system.
+
#<pre>'''lsusb -tv''': Show USB devices.</pre>
#'''lspci -tv''': Show PCI devices.
+
#<pre>'''date''': Show the system date.</pre>
#'''lsusb -tv''': Show USB devices.
+
#<pre>'''cal 2014''': Show calendar &lt;cal + year&gt;</pre>
#'''date''': Show the system date.
+
#<pre>'''cal 07 2014''': Show month.</pre>
#'''cal 2014''': Show calendar &lt;cal + year&gt;
+
#<pre>'''date 041217002011.00''': set date (set, adjust) date y hour.</pre>
#'''cal 07 2014''': Show month.
+
#<pre>'''clock -w''': Save date changes in BIOS.</pre>
#'''date 041217002011.00''': set date (set, adjust) date y hour.
 
#'''clock -w''': Save date changes in BIOS.
 
 
<blockquote>
 
<blockquote>
 
{| cellspacing="0" cellpadding="5" border="2" style="color: lightgreen; background-color: black;"
 
{| cellspacing="0" cellpadding="5" border="2" style="color: lightgreen; background-color: black;"
 
|-
 
|-
|  
+
| <pre><tt>[jdoe@localhost ~]$ arch</tt>
<tt>[jdoe@localhost ~]$ arch</tt>  
 
  
<tt>x86_64</tt>  
+
<tt>x86_64</tt>
  
<tt>[jdoe@localhost ~]$ uname -m</tt>  
+
<tt>[jdoe@localhost ~]$ uname -m</tt>
  
<tt>x86_64 </tt>  
+
<tt>x86_64 </tt></pre>
 +
|}
 +
</blockquote><pre>
  
|}
+
</pre>
<br> </blockquote><blockquote></blockquote>
 

Revision as of 11:08, 2 February 2014

Overview

This article describes several linux user space commands that can be useful for doing several tasks

System Information

  1. arch: Show the machine arch.
  2. uname -m: Show machine arch.
<tt>[jdoe@localhost ~]$ arch</tt>

<tt>x86_64</tt>

<tt>[jdoe@localhost ~]$ uname -m</tt>

<tt>x86_64</tt>
  1. uname -r: Show the kernel version.
  2. cat /proc/version: Show kernel version (extra information).
[jdoe@localhost ~]$ uname -r

3.11.10-301.fc20.x86_64

[jdoe@localhost ~]$ cat /proc/version 

Linux version 3.11.10-301.fc20.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC) ) #1 SMP Thu Dec 5 14:01:17 UTC 2013
  1. '''dmidecode -q''': Show the system hardware information.
  2. '''hdparm -i /dev/hda''': Show harddisk information.
  3. '''hdparm -tT /dev/sda''': Do a read test.
  4. '''cat /proc/cpuinfo''': Show CPU information.
  5. '''cat /proc/interrupts''': Show IRQ information.
  6. '''cat /proc/meminfo''': Show Memory status.
  7. '''cat /proc/swaps''': Show swap files.
  8. '''cat /proc/net/dev''': Show Network adapters and statistics.
  9. '''cat /proc/mounts''': Show mounted volumes in the system.
  10. '''lspci -tv''': Show PCI devices.
  11. '''lsusb -tv''': Show USB devices.
  12. '''date''': Show the system date.
  13. '''cal 2014''': Show calendar <cal + year>
  14. '''cal 07 2014''': Show month.
  15. '''date 041217002011.00''': set date (set, adjust) date y hour.
  16. '''clock -w''': Save date changes in BIOS.
<tt>[jdoe@localhost ~]$ arch</tt>

<tt>x86_64</tt>

<tt>[jdoe@localhost ~]$ uname -m</tt>

<tt>x86_64 </tt>