Linux uname Command tutorial

Uname is a short form of Unix name. This is a very useful command in Linux, which provides hardware and software information in the current running system.

This short manual will show you how to get all system information through the Uname command.

Syntax:

Options:

There are several ways to filter out the details you want.

1. -a option:

Use -a option with uname command to display all possible information about your current running system.

2. -s option:

We can use the –s option to display currently using kernel name and information.

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage9 final.png

3. –v option:

The–v option prints the Kernel version on the command line:

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage8 final.png

4. –r option:

Use –r option to display the kernel release details.

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage11 final.png

5. –m option:

Use –m option to see the currently running machine hardware name.

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage10 final.png

If the output value is x86 64, it means that you are using the 64-bit operating system. Moreover, the i686 value refers to the 32-bit operating system.

6. –n option:

The –n parameter with the uname command is used to display the network node hostname.

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage2 final.png

7. -p option:

Use –p parameter with uname; it will give current processor information.

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage1 final.png

8. –i option:

The –i option gets the current hardware system information and prints it on the command-line:

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage4 final.png

9. –o option:

The –o option with the uname command is used to print the operating system name.

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage3 final.png

10. –version option:

Use –version parameter with uname to get uname version details as follows:

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage6 final.png

11. Help option:

The –help shows us all possible commands and their usage.

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage5 final.png

Conclusion:

The uname command is a very efficient command through which we can get all possible information about the operating system, hardware, kernel, and processor information. To figure out why a piece of software is not performing as expected, you’ll need to know the kernel version, operating system, and basic hardware details.