arch
This command outputs the machine architecture. Output is along the lines of "i386", "i486", "i586", "i686", "alpha", "sparc", "arm", "m68k"
Example: This command has no options:
arch
hostname
[NAME]
If there are no arguments, hostname displays the name of the current host system. Otherwise, it sets the hostname as specified or displays the specified information.
Example: To set your system name to "odin", use
hostname odin
-a, --alias | Show alias name of the host. |
-d, --domain | Display DNS domain name. |
-F, --file filename | Read hostname from specified file, rather than /etc/hosts. |
-f, --fqdn, --long | Display fully qualified domain name. |
-h, --help | Display help message. |
-i, --ip-address | Display host's IP address. |
-s, --short | Display short host name. |
-V, --version | Display version information. |
-v, --verbose | Display verbose output. |
-y, --yp, --nis | Display NIS domain name. |
hwclock
--show
hwclock
--set --date=newdate
hwclock
--systohc
hwclock
--hctosys
hwclock
--getepoch
hwclock
--setepoch --epoch=year
hwclock
--adjust
hwclock
--version
This command displays or sets the values of the hardware clock. Note that this value is distinct from system time. The hardware clock is entirely independent from software, whereas the system time is mediated by a system interrupt.
Example: To display the time as understood by your hardware clock, use
hwclock --show
Example: To set the time on your hardware clock to 2 a.m. on the fourth of July, use
hwclock --set --date="07/04/01 02:00:00"
It is required that you invoke hwclock with one of the following options:
--show | Display time to standard output. |
--set | Set the clock to the time specified at the --date option. |
--hctosys | Set the system time from the hardware clock. |
--systohc | Set the hardware clock from the system time. |
--adjust | Adjust the hardware clock time. |
--getepoch | Display the hardware clock's epoch value. (The epoch value is the number of years since 0 a.d. to which a value of 0 in the hardware clock would refer.) |
--setepoch | Set the hardware clock's epoch value to the specified value. |
--version | Display the version of hwclock to standard output. |
The following commands are optional:
--date=date_string | Specify the time to set the hardware clock (e.g., hwclock --set --date="06/27/99 10:15:09"). |
--epoch=year | Specify the value for the epoch year. |
--utc | Tell hwclock to keep itself in coordinated universal time. |
--directisa | Tell hwclock to use explicit I/O instructions to access the hardware clock (on an ISA machine). |
--test | Do everything, except actually update the hwclock. |
--debug | Display debug information. |
uname
[OPTION]
This command displays information about the machine and operating system to standard output. Some or all of the following information is displayed:
system name, node name, release, operating system version, machine
Example: To display information about your operating system release, use
uname -r
Example: To display verbose information (OS type, machine name, OS version, hardware platform, some other stuff) about your machine, use
uname -a
-a, --all | Display all the possible information. |
-m, --machine | Display the hardware type. |
-n, --nodename | Display the network node hostname. |
-p, --processor | Display the processor type. |
-r, --release | Display the operating system version. |
-s, --sysname | Display the operating system name. |
-v | Display the operating system version. |