Name

uname [options] — coreutils

Synopsis

/bin stdin stdout - file -- opt --help --version

The uname command prints fundamental information about your computer:

$ uname -a
Linux server.example.com 2.4.18-27.8.0 #1 Fri Mar 14 06:
45:49 EST 2003 i686 i686 i386 GNU/Linux

This includes the kernel name (Linux), hostname (server.example.com), kernel version (2.4.18-27.8.0 #1 Fri Mar 14 06:45:49 EST 2003), hardware name (i686), processor type (i686), hardware platform (i386), and operating system name (GNU/Linux).

Useful options

-a

All information.

-s

Only the kernel name (the default).

-n

Only the hostname.

-r

Only the kernel version.

-m

Only the hardware name.

-p

Only the processor type.

-i

Only the hardware platform.

-o

Only the operating system name.

Get Linux Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.