uname command in Linux with Examples

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

Appsecco | Web developer | IEEE | GeeksforGeeks Intern | Aspiring Cyber Security Specialist | Camcann Visit https//ashwingoelcom

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.