Linux uname Command tutorial

15

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  Linux uname Command tutorial 1617247627 46 Linux uname Command tutorial

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  Linux uname Command tutorial 1617247627 530 Linux uname Command tutorial

4. –r option:

Use –r option to display the kernel release details.

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage11 final.png  Linux uname Command tutorial 1617247628 42 Linux uname Command tutorial

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  Linux uname Command tutorial 1617247628 950 Linux uname Command tutorial

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  Linux uname Command tutorial 1617247628 276 Linux uname Command tutorial

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  Linux uname Command tutorial 1617247629 802 Linux uname Command tutorial

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  Linux uname Command tutorial 1617247629 683 Linux uname Command tutorial

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  Linux uname Command tutorial 1617247629 721 Linux uname Command tutorial

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  Linux uname Command tutorial 1617247630 647 Linux uname Command tutorial

11. Help option:

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

D:Aqsa12 marchLinux uname Command tutorialLinux uname Command tutorialimagesimage5 final.png  Linux uname Command tutorial 1617247630 382 Linux uname Command tutorial

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.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More