Name
uname — stdin stdout - file -- opt --help --version
Synopsis
uname [options]The uname command prints
fundamental information about your computer:
$ uname -a Linux server.example.com 2.6.32-35-generic-pae #78-Ubuntu SMP Tue Oct 11 17:01:12 UTC 2011 i686 GNU/Linux
This includes the kernel name (Linux), hostname (server.example.com), kernel release (2.6.32-35-generic-pae), kernel version (#78-Ubuntu SMP Tue Oct 11 17:01:12 UTC 2011), hardware name (i686), processor type (i686), and operating system name (GNU/Linux). Each of these values can be printed individually using options.
Useful options
|
|
All information. |
|
|
Only the kernel name (the default). |
|
|
Only the hostname, as
with the |
|
|
Only the kernel release. |
|
|
Only the kernel version. |
|
|
Only the hardware name. |
|
|
Only the processor type. |
|
|
Only the hardware platform. |
|
|
Only the operating system name. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access