2014-02-11 00:35:16 +00:00
|
|
|
# uname
|
|
|
|
|
2015-12-07 01:51:25 +00:00
|
|
|
> Print details about the current machine and the operating system running on it.
|
2021-07-24 19:03:30 +01:00
|
|
|
> See also `lsb_release`.
|
2021-04-01 16:54:26 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/uname>.
|
2015-10-09 08:54:24 +01:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print kernel name:
|
2014-02-11 00:35:16 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
`uname`
|
2014-02-11 00:35:16 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print system architecture and processor information:
|
2014-02-11 00:35:16 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
`uname --machine --processor`
|
2014-02-11 00:35:16 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print kernel name, kernel release and kernel version:
|
2014-02-11 00:35:16 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
`uname --kernel-name --kernel-release --kernel-version`
|
2015-12-23 16:16:11 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print system hostname:
|
2015-12-23 16:16:11 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
`uname --nodename`
|
|
|
|
|
|
|
|
- Print all available system information:
|
|
|
|
|
|
|
|
`uname --all`
|