uname: refresh (#6242)

This commit is contained in:
CleanMachine1
2021-07-24 19:03:30 +01:00
committed by GitHub
parent 27dd607f59
commit a9547d0184
2 changed files with 22 additions and 13 deletions

View File

@@ -1,21 +1,25 @@
# uname
> Print details about the current machine and the operating system running on it.
> Note: for additional information about the operating system, try the `lsb_release` command.
> See also `lsb_release`.
> More information: <https://www.gnu.org/software/coreutils/uname>.
- Print hardware-related information: machine and processor:
- Print kernel name:
`uname -mp`
`uname`
- Print software-related information: operating system, release number, and version:
- Print system architecture and processor information:
`uname -srv`
`uname --machine --processor`
- Print the nodename (hostname) of the system:
- Print kernel name, kernel release and kernel version:
`uname -n`
`uname --kernel-name --kernel-release --kernel-version`
- Print all available system information (hardware, software, nodename):
- Print system hostname:
`uname -a`
`uname --nodename`
- Print all available system information:
`uname --all`

View File

@@ -2,19 +2,24 @@
> Print details about the current machine and the operating system running on it.
> Note: for additional information about the operating system, try the `sw_vers` command.
> More information: <https://ss64.com/osx/uname.html>.
- Print hardware-related information: machine and processor:
- Print kernel name:
`uname`
- Print system architecture and processor information:
`uname -mp`
- Print software-related information: operating system, release number, and version:
- Print kernel name, kernel release and kernel version:
`uname -srv`
- Print the nodename (hostname) of the system:
- Print system hostname:
`uname -n`
- Print all available system information (hardware, software, nodename):
- Print all available system information:
`uname -a`