Uname: displays information about the computer and operating system.
Syntax
Uname [-amnclr] [-- help] [-- version]
Parameter description:
- -A or -- all displays all information.
- -M or -- machine displays the computer type.
- -N or-nodename indicates the host name displayed on the network.
- -R or -- release displays the release number of the operating system.
- -S or -- sysname: displays the operating system name.
- -V: displays the version of the operating system.
- -- Help: displays help.
- -- Version: displays the version information.
Instance
Display System Information
# Uname-
Linux snail il-hnlinux 2.6.32-21-generic # 32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686
GNU/Linux
Display computer type
# Uname-m
I686
Show computer name
# Uname-n
Snail -hnlinux
Display operating system release number
# Uname-r
2.6.32-21-generic
Show operating system name
# Uname-s
Linux
Show system time
# Uname-v
# 32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2014