Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

uname command in Linux with Examples

  • Difficulty Level : Basic
  • Last Updated : 18 Feb, 2021

The command ‘uname‘ displays the information about the system.

Syntax:

uname [OPTION]

Options and Examples

1. -a option: It prints all the system information in the following order: Kernel name, network node hostname, kernel release date, kernel version, machine hardware name, hardware platform, operating system
.
Syntax:

$uname  -a

Output:



2. -s option: It prints the kernel name.

Syntax:

$uname  -s

Output:

3. -n option: It prints the hostname of the network node(current computer).

Syntax:

$uname  -n

Output:



4. -r option: It prints the kernel release date.

Syntax:

$uname  -r

Output:

5. -v option: It prints the version of the current kernel.

Syntax:

$uname  -v

Output:

6. -m option: It prints the machine hardware name.

Syntax:

$uname  -m

Output:

7. -p option: It prints the type of the processor.

Syntax:

$uname  -p

Output:

8. -i option: It prints the platform of the hardware.

Syntax:

$uname  -i

Output:

9. -o option: It prints the name of the operating system.

Syntax :

$uname  -o

Output:


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!