2014-02-10 16:35:16 -08:00
|
|
|
# uname
|
|
|
|
|
2015-12-07 03:51:25 +02: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`.
|
2025-01-18 18:45:33 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uname-invocation.html>.
|
2015-10-09 08:54:24 +01:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print kernel name:
|
2014-02-10 16:35:16 -08:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
`uname`
|
2014-02-10 16:35:16 -08:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
- Print all available system information:
|
|
|
|
|
|
|
|
`uname {{[-a|--all]}}`
|
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print system architecture and processor information:
|
2014-02-10 16:35:16 -08:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`uname {{[-mp|--machine --processsor]}}`
|
2014-02-10 16:35:16 -08:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print kernel name, kernel release and kernel version:
|
2014-02-10 16:35:16 -08:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`uname {{[-srv|--kernel-name --kernel-release --kernel-version]}}`
|
2015-12-23 18:16:11 +02:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print system hostname:
|
2015-12-23 18:16:11 +02:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`uname {{[-n|--nodename]}}`
|
2021-07-24 19:03:30 +01:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
- Print the current operating system name:
|
|
|
|
|
|
|
|
`uname {{[-o|--operating-system]}}`
|
|
|
|
|
|
|
|
- Print the current network node host name:
|
|
|
|
|
|
|
|
`uname {{[-n|--nodename]}}`
|
|
|
|
|
|
|
|
- Display help:
|
2021-07-24 19:03:30 +01:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`uname --help`
|