Changes

LinuxCommands

6,068 bytes added, 11:14, 2 February 2014
no edit summary
= System Information =
#'''arch''': Show the machine arch. #'''uname -m''': Show machine arch.
<pre style="line-height: 11px; font-size: 11px;">[jdoe@localhost ~]$ arch
x86_64
</pre>
#'''uname -r''': Show the kernel version. #'''cat /proc/version''': Show kernel version (extra information).
<pre>[jdoe@localhost ~]$ uname -r
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>
'''dmidecode -q''': Show the system hardware information.
 
 
<pre>[root@localhost ~]# dmidecode -q | more
 
BIOS Information
<span class="Apple-tab-span" style="white-space:pre"> </span>Vendor: Phoenix Technologies LTD <span class="Apple-tab-span" style="white-space:pre"> </span>Version: 6.00 <span class="Apple-tab-span" style="white-space:pre"> </span>Release Date: 07/31/2013 <span class="Apple-tab-span" style="white-space:pre"> </span>Address: 0xEA050 <span class="Apple-tab-span" style="white-space:pre"> </span>Runtime Size: 90032 bytes <span class="Apple-tab-span" style="white-space:pre"> </span>ROM Size: 64 kB <span class="Apple-tab-span" style="white-space:pre"> </span>Characteristics: <span class="Apple-tab-span" style="white-space:pre"> </span>ISA is supported <span class="Apple-tab-span" style="white-space:pre"> </span>PCI is supported <span class="Apple-tab-span" style="white-space:pre"> </span>PC Card (PCMCIA) is supported <span class="Apple-tab-span" style="white-space:pre"> </span>PNP is supported <span class="Apple-tab-span" style="white-space:pre"> </span>APM is supported <span class="Apple-tab-span" style="white-space:pre"> </span>BIOS is upgradeable <span class="Apple-tab-span" style="white-space:pre"> </span>BIOS shadowing is allowed <span class="Apple-tab-span" style="white-space:pre"> </span>ESCD support is available <span class="Apple-tab-span" style="white-space:pre"> </span>Boot from CD is supported <span class="Apple-tab-span" style="white-space:pre"> </span>Selectable boot is supported <span class="Apple-tab-span" style="white-space:pre"> </span>EDD is supported <span class="Apple-tab-span" style="white-space:pre"> </span>Print screen service is supported (int 5h) <span class="Apple-tab-span" style="white-space:pre"> </span>8042 keyboard services are supported (int 9h) <span class="Apple-tab-span" style="white-space:pre"> </span>Serial services are supported (int 14h) <span class="Apple-tab-span" style="white-space:pre"> </span>Printer services are supported (int 17h) <span class="Apple-tab-span" style="white-space:pre"> </span>CGA/mono video services are supported (int 10h) <span class="Apple-tab-span" style="white-space:pre"> </span>ACPI is supported <span class="Apple-tab-span" style="white-space:pre"> </span>Smart battery is supported <span class="Apple-tab-span" style="white-space:pre"> </span>BIOS boot specification is supported <span class="Apple-tab-span" style="white-space:pre"> </span>Function key-initiated network boot is supported <span class="Apple-tab-span" style="white-space:pre"> </span>Targeted content distribution is supported <span class="Apple-tab-span" style="white-space:pre"> </span>BIOS Revision: 4.6 <span class="Apple-tab-span" style="white-space:pre"> </span>Firmware Revision: 0.0 System Information <span class="Apple-tab-span" style="white-space:pre"> </span>Manufacturer: VMware, Inc. <span class="Apple-tab-span" style="white-space:pre"> </span>Product Name: VMware Virtual Platform <span class="Apple-tab-span" style="white-space:pre"> </span>Version: None <span class="Apple-tab-span" style="white-space:pre"> </span>Serial Number: VMware-56 4d 70 a2 b3 bf 32 d8-67 a4 6b 32 13 95 8c d7 <span class="Apple-tab-span" style="white-space:pre"> </span>UUID: 564D70A2-B3BF-32D8-67A4-6B3213958CD7 <span class="Apple-tab-span" style="white-space:pre"> </span>Wake-up Type: Power Switch <span class="Apple-tab-span" style="white-space:pre"> </span>SKU Number: Not Specified <span class="Apple-tab-span" style="white-space:pre"> </span>Family: Not Specified Base Board Information <span class="Apple-tab-span" style="white-space:pre"> </span>Manufacturer: Intel Corporation <span class="Apple-tab-span" style="white-space:pre"> </span>Product Name: 440BX Desktop Reference Platform <span class="Apple-tab-span" style="white-space:pre"> </span>Version: None <span class="Apple-tab-span" style="white-space:pre"> </span>Serial Number: None <span class="Apple-tab-span" style="white-space:pre"> </span>Asset Tag: Not Specified <span class="Apple-tab-span" style="white-space:pre"> </span>Features: None <span class="Apple-tab-span" style="white-space:pre"> </span>Location In Chassis: Not Specified <span class="Apple-tab-span" style="white-space:pre"> </span>Type: Unknown Chassis Information <span class="Apple-tab-span" style="white-space:pre"> </span>Manufacturer: No Enclosure <span class="Apple-tab-span" style="white-space:pre"> </span>Type: Other <span class="Apple-tab-span" style="white-space:pre"> </span>Lock: Not Present <span class="Apple-tab-span" style="white-space:pre"> </span>Version: N/A <span class="Apple-tab-span" style="white-space:pre"> </span>Serial Number: None <span class="Apple-tab-span" style="white-space:pre"> </span>Asset Tag: No Asset Tag <span class="Apple-tab-span" style="white-space:pre"> </span>Boot-up State: Safe <span class="Apple-tab-span" style="white-space:pre"> </span>Power Supply State: Safe <span class="Apple-tab-span" style="white-space:pre"> </span>Thermal State: Safe <span class="Apple-tab-span" style="white-space:pre"> </span>Security Status: None <span class="Apple-tab-span" style="white-space:pre"> </span>OEM Information: 0x00001234 <span class="Apple-tab-span" style="white-space:pre"> </span>Height: Unspecified <span class="Apple-tab-span" style="white-space:pre"> </span>Number Of Power Cords: Unspecified <span class="Apple-tab-span" style="white-space:pre"> </span>Contained Elements: 0 Processor Information <span class="Apple-tab-span" style="white-space:pre"> </span>Socket Designation: CPU socket #0 <span class="Apple-tab-span" style="white-space:pre"> </span>Type: Central Processor <span class="Apple-tab-span" style="white-space:pre"> </span>Family: Unknown <span class="Apple-tab-span" style="white-space:pre"> </span>Manufacturer: GenuineIntel <span class="Apple-tab-span" style="white-space:pre"> </span>ID: A9 06 03 00 FF FB AB 0F <span class="Apple-tab-span" style="white-space:pre"> </span>Version: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz <span class="Apple-tab-span" style="white-space:pre"> </span>Voltage: 3.3 V .... </pre>
 
 
 
'''hdparm -i /dev/hda''': Show harddisk information.
 
#
 '''dmidecode hdparm -qtT /dev/sda''': Show the system hardware informationDo a read test.
#
 '''hdparm -i cat /devproc/hdacpuinfo''': Show harddisk CPU information.
#
 '''hdparm -tT cat /devproc/sdainterrupts''': Do a read testShow IRQ information.
#
 '''cat /proc/cpuinfomeminfo''': Show CPU informationMemory status.
#
 '''cat /proc/interruptsswaps''': Show IRQ informationswap files.
#
 '''cat /proc/meminfonet/dev''': Show Memory statusNetwork adapters and statistics.
#
 '''cat /proc/swapsmounts''': Show swap filesmounted volumes in the system.
#
 '''cat /proc/net/devlspci -tv''': Show Network adapters and statisticsPCI devices.
#
 '''cat /proc/mountslsusb -tv''': Show mounted volumes in the systemUSB devices.
#
 '''lspci -tvdate''': Show PCI devicesthe system date.
#
 '''lsusb -tvcal 2014''': Show USB devices.calendar &lt;cal + year&gt;
#
'''date''': Show the system date.
#'''cal 07 2014''': Show calendar &lt;cal + year&gt;month.
#
'''cal 07 2014''': Show month.
#'''date 041217002011.00''': set date (set, adjust) date y hour.
#
'''clock -w''': Save date changes in BIOS.
'''clock -w''': Save date changes in BIOS.
<blockquote>
{| cellspacing="0" cellpadding="5" border="2" style="color: lightgreen; background-color: black;"
|-
|
&lt;tt&gt;[jdoe@localhost ~]$ arch&lt;/tt&gt;
&lt;tt&gt;x86_64&lt;/tt&gt;
&lt;tt&gt;[jdoe@localhost ~]$ uname -m&lt;/tt&gt;
&lt;tt&gt;x86_64 &lt;/tt&gt;
|}
</blockquote>