2022-07-30 22:15:36 +05:30
|
|
|
# uname
|
|
|
|
|
2025-03-10 16:08:27 +00:00
|
|
|
> Print details about the current machine and the operating system running on it.
|
2022-07-30 22:15:36 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uname-invocation.html>.
|
|
|
|
|
|
|
|
- Print all information:
|
|
|
|
|
2025-03-07 07:39:27 +01:00
|
|
|
`uname {{[-a|--all]}}`
|
2022-07-30 22:15:36 +05:30
|
|
|
|
|
|
|
- Print the current kernel name:
|
|
|
|
|
2025-03-07 07:39:27 +01:00
|
|
|
`uname {{[-s|--kernel-name]}}`
|
2022-07-30 22:15:36 +05:30
|
|
|
|
|
|
|
- Print the current network node host name:
|
|
|
|
|
2025-03-07 07:39:27 +01:00
|
|
|
`uname {{[-n|--nodename]}}`
|
2022-07-30 22:15:36 +05:30
|
|
|
|
|
|
|
- Print the current kernel release:
|
|
|
|
|
2025-03-07 07:39:27 +01:00
|
|
|
`uname {{[-r|--kernel-release]}}`
|
2022-07-30 22:15:36 +05:30
|
|
|
|
|
|
|
- Print the current kernel version:
|
|
|
|
|
2025-03-07 07:39:27 +01:00
|
|
|
`uname {{[-v|--kernel-version]}}`
|
2022-07-30 22:15:36 +05:30
|
|
|
|
|
|
|
- Print the current machine hardware name:
|
|
|
|
|
2025-03-07 07:39:27 +01:00
|
|
|
`uname {{[-m|--machine]}}`
|
2022-07-30 22:15:36 +05:30
|
|
|
|
|
|
|
- Print the current processor type:
|
|
|
|
|
2025-03-07 07:39:27 +01:00
|
|
|
`uname {{[-p|--processsor]}}`
|
2022-07-30 22:15:36 +05:30
|
|
|
|
|
|
|
- Print the current operating system name:
|
|
|
|
|
2025-03-07 07:39:27 +01:00
|
|
|
`uname {{[-o|--operating-system]}}`
|