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.
|
2016-11-19 17:41:17 +00:00
|
|
|
> Note: for additional information about the operating system, try the `sw_vers` command.
|
2021-07-24 19:03:30 +01:00
|
|
|
> More information: <https://ss64.com/osx/uname.html>.
|
2015-10-09 08:54:24 +01:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print kernel name:
|
|
|
|
|
|
|
|
`uname`
|
|
|
|
|
|
|
|
- Print system architecture and processor information:
|
2014-02-11 00:35:16 +00:00
|
|
|
|
2015-07-08 18:45:35 +01:00
|
|
|
`uname -mp`
|
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
|
|
|
|
2015-07-01 20:57:51 +01:00
|
|
|
`uname -srv`
|
2014-02-11 00:35:16 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print system hostname:
|
2014-02-11 00:35:16 +00:00
|
|
|
|
|
|
|
`uname -n`
|
2015-12-23 16:16:11 +00:00
|
|
|
|
2021-07-24 19:03:30 +01:00
|
|
|
- Print all available system information:
|
2015-12-23 16:16:11 +00:00
|
|
|
|
|
|
|
`uname -a`
|