uname

>Usage

The uname command is a utility used to display system information. It provides details about the operating system and the underlying hardware. By default, uname outputs the system's kernel name, but additional options can be used to retrieve more specific information.

>Synopsis

uname [option]

>Options

-m

Writes the type of hardware platform.

Example 1:

Dots

-zsh

>uname -m


arm64

-n

Writes the system name

Example 2:

Dots

-zsh

>uname -n


[YourDeviceName].local

-p

Writes the type of machine processor architecture

Example 3:

Dots

-zsh

>uname -p


arm

-r

Writes the release level of the OS

Example 4:

Dots

-zsh

>uname -r


23.6.0

-s

Writes the name of the OS implementation

Example 5:

Dots

-zsh

>uname -s


Darwin

-v

Writes the version level of the OS release

Example 6:

Dots

-zsh

>uname -v


Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6030

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Davide Soardi