Difference between revisions of "LinuxCommands"
From IGEP - ISEE Wiki
Manel Caro (talk | contribs) (Created page with '= Overview = This article describes several linux user space commands that can be useful for doing several tasks __TOC__ = System Information = arch: Show the machine arc…') |
Manel Caro (talk | contribs) |
||
Line 7: | Line 7: | ||
= System Information = | = System Information = | ||
− | arch: Show the machine | + | #'''arch''': Show the machine arch. |
+ | #'''uname -m''': Show machine arch. | ||
− | + | {| cellspacing="0" cellpadding="5" border="2" style="font-size: 13px; color: rgb(144, 238, 144); background-color: black;" | |
− | |||
− | {| cellspacing="0" cellpadding="5" border="2" style="color: | ||
|- | |- | ||
| | | | ||
Line 19: | Line 18: | ||
<tt>[jdoe@localhost ~]$ uname -m</tt> | <tt>[jdoe@localhost ~]$ uname -m</tt> | ||
+ | |||
+ | <tt>x86_64</tt><tt><br></tt> | ||
+ | |||
+ | |} | ||
+ | |||
+ | #'''uname -r''': Show the kernel version. | ||
+ | #'''cat /proc/version''': Show kernel version (extra information). | ||
+ | |||
+ | {| cellspacing="0" cellpadding="5" border="2" style="font-size: 13px; color: rgb(144, 238, 144); background-color: black;" | ||
+ | |- | ||
+ | | | ||
+ | [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<br> | ||
+ | |||
+ | |} | ||
+ | |||
+ | #'''dmidecode -q''': Show the system hardware information. | ||
+ | #'''hdparm -i /dev/hda''': Show harddisk information. | ||
+ | #'''hdparm -tT /dev/sda''': Do a read test. | ||
+ | #'''cat /proc/cpuinfo''': Show CPU information. | ||
+ | #'''cat /proc/interrupts''': Show IRQ information. | ||
+ | #'''cat /proc/meminfo''': Show Memory status. | ||
+ | #'''cat /proc/swaps''': Show swap files.<br> | ||
+ | #'''cat /proc/net/dev''': Show Network adapters and statistics. | ||
+ | #'''cat /proc/mounts''': Show mounted volumes in the system. | ||
+ | #'''lspci -tv''': Show PCI devices. | ||
+ | #'''lsusb -tv''': Show USB devices. | ||
+ | #'''date''': Show the system date. | ||
+ | #'''cal 2014''': Show calendar <cal + year> | ||
+ | #'''cal 07 2014''': Show month. | ||
+ | #'''date 041217002011.00''': set date (set, adjust) date y hour. | ||
+ | #'''clock -w''': Save date changes in BIOS. | ||
+ | <blockquote> | ||
+ | {| cellspacing="0" cellpadding="5" border="2" style="color: lightgreen; background-color: black;" | ||
+ | |- | ||
+ | | | ||
+ | <tt>[jdoe@localhost ~]$ arch</tt> | ||
+ | |||
+ | <tt>x86_64</tt> | ||
+ | |||
+ | <tt>[jdoe@localhost ~]$ uname -m</tt> | ||
<tt>x86_64 </tt> | <tt>x86_64 </tt> |
Revision as of 11:06, 2 February 2014
Overview
This article describes several linux user space commands that can be useful for doing several tasks
Contents
System Information
- arch: Show the machine arch.
- uname -m: Show machine arch.
[jdoe@localhost ~]$ arch x86_64 [jdoe@localhost ~]$ uname -m x86_64 |
- uname -r: Show the kernel version.
- 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 |
- dmidecode -q: Show the system hardware information.
- hdparm -i /dev/hda: Show harddisk information.
- hdparm -tT /dev/sda: Do a read test.
- cat /proc/cpuinfo: Show CPU information.
- cat /proc/interrupts: Show IRQ information.
- cat /proc/meminfo: Show Memory status.
- cat /proc/swaps: Show swap files.
- cat /proc/net/dev: Show Network adapters and statistics.
- cat /proc/mounts: Show mounted volumes in the system.
- lspci -tv: Show PCI devices.
- lsusb -tv: Show USB devices.
- date: Show the system date.
- cal 2014: Show calendar <cal + year>
- cal 07 2014: Show month.
- date 041217002011.00: set date (set, adjust) date y hour.
- clock -w: Save date changes in BIOS.
[jdoe@localhost ~]$ arch
x86_64
[jdoe@localhost ~]$ uname -m
x86_64