snippetbashTip
uname — Print details about the current machine and the operating system running on it. Note: For additional
Viewed 0 times
thecurrentcommanddetailscliprintunameabout
macos
Problem
How to use the
uname command: 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://keith.github.io/xcode-man-pages/uname.1.html>.Solution
uname — 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://keith.github.io/xcode-man-pages/uname.1.html>.Print kernel name:
unamePrint system architecture and processor information:
uname -mpPrint kernel name, kernel release, and kernel version:
uname -srvPrint system hostname:
uname -nPrint all available system information:
uname -aCode Snippets
Print kernel name
unamePrint system architecture and processor information
uname -mpPrint kernel name, kernel release, and kernel version
uname -srvPrint system hostname
uname -nPrint all available system information
uname -aContext
tldr-pages: osx/uname
Revisions (0)
No revisions yet.