uname

Command Function

This command is used to display the name, version creation time, system name, and version information of the current OS.

Syntax

uname [-a | -s | -t | -v | --help]

Table 1 Parameters

Parameter

Parameters

No parameter

Displays the OS name by default.

-a

Displays all information.

-t

Displays the time when the version was created.

-s

Displays the OS name.

-v

Displays the version information.

--help

Displays the help information.

Usage

The uname command displays the name of the current OS by default. The uname -a | -t| -s| -v command displays the name of the in-use OS in the standard output. These parameters are mutually exclusive.

Example

Run uname -a.

Output

Querying system information