Linux uname command

Linux 命令大全Linux Command Reference

Linux uname (full English spelling: unix name) command is used to display operating system information, such as kernel version, hostname, processor type, etc.

uname can display information about the computer and the operating system.

Syntax

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

Parameter description:

  • -a or --all Display all information, including kernel name, hostname, operating system version, processor type, and hardware architecture, etc.
  • -m or --machine Display the processor type.
  • -n or --nodename Display the hostname.
  • -r or --release Display the kernel version number.
  • -s or --sysname Display the operating system name.
  • -v Display the operating system version.
  • --help Display help.
  • --version Display version information.
  • -p Display the processor type (same as the -m option).

Examples

Display system information:

# uname -a
Linux iZbp19byk2t6khuqj437q6Z 4.11.0-14-generic #20~16.04.1-Ubuntu SMP Wed Aug 9 09:06:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Display computer type:

# uname -m
x86_64

Display computer name:

# uname -n
example-linux

Display operating system release number:

# uname -r
4.11.0-14-generic

Display operating system name:

# uname -s
Linux

Display system version and time:

# uname -v
#20~16.04.1-Ubuntu SMP Wed Aug 9 09:06:22 UTC 2017

Linux 命令大全Linux Command Reference

Other extensions