mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
uname: refresh (#6242)
This commit is contained in:
parent
27dd607f59
commit
a9547d0184
2 changed files with 22 additions and 13 deletions
|
@ -1,21 +1,25 @@
|
||||||
# uname
|
# uname
|
||||||
|
|
||||||
> Print details about the current machine and the operating system running on it.
|
> 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>.
|
> 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`
|
||||||
|
|
|
@ -2,19 +2,24 @@
|
||||||
|
|
||||||
> Print details about the current machine and the operating system running on it.
|
> 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.
|
> 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`
|
`uname -mp`
|
||||||
|
|
||||||
- Print software-related information: operating system, release number, and version:
|
- Print kernel name, kernel release and kernel version:
|
||||||
|
|
||||||
`uname -srv`
|
`uname -srv`
|
||||||
|
|
||||||
- Print the nodename (hostname) of the system:
|
- Print system hostname:
|
||||||
|
|
||||||
`uname -n`
|
`uname -n`
|
||||||
|
|
||||||
- Print all available system information (hardware, software, nodename):
|
- Print all available system information:
|
||||||
|
|
||||||
`uname -a`
|
`uname -a`
|
||||||
|
|
Loading…
Add table
Reference in a new issue