Latest web development tutorials

Linux uname command

Linux command Daquan Linux command Daquan

Linux uname command to display system information.

uname displays the computer and operating system information.

grammar

uname [-amnrsv][--help][--version]

Parameter Description:

  • -a or --all display all of the information.
  • -m or --machine display the type of computer.
  • -n or -nodename appear on the network host name.
  • -r or --release show the operating system release number.
  • -s or --sysname displays the operating system name.
  • -v displays the operating system version.
  • --help displays help.
  • --version display version information.

Examples

Information Display System

# uname -a
Linux snail-hnlinux 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux

The type of computer display

# uname -m
i686

Machine name

# uname -n
snail-hnlinux

Displays the operating system release number

# uname -r
2.6.32-21-generic

Displays the operating system name

# uname -s
Linux

Display system

# uname -v
#32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2014

Linux command Daquan Linux command Daquan