Related
Quick Links
Summary
The Linuxunamecommand can display information about the system.
Theunamecommand can retrieve information like the system hostname, version of the kernel, and processor architecture.
What Is uname on Linux?
Theunamecommand has several options, which we will go over below.
For example, someLinux distributionsdisplay their name or code namesome will only print “Linux”.
It all depends on how developers of each distribution decide to show that information in theunameoutput.
Let’s jump to the various examples of theunamecommands with different options.
It provides a thorough overview of system information.
Both these commands will give you the same result.
Hannah Stryker / How-To Geek
Print the Kernel Version
you’re free to print the current kernel version using the-voption.
This option gives you specific details about the kernel version you’re using on Linux.
The output can be broken down into several components:
The-voptions give a detailed description of the installed kernel.
The hostname is a computer’s unique name in a web link.
Your Linux operating system uses the hostname to communicate with other nodes on the web connection.
The Linuxhostnameandhostnamectlcommands can also give you the system data pipe hostname.
It can display the processor information, machine hardware name, and hardware platform information.
Here, the x86_64 represents the machine hardware name.
It is a 64-bit architecture on x86 platforms.
This is a common output for most Linux systems with Intel or AMD processors.
The-m,-p, and-ioptions of theunamecommand often display identical output.
They all provide information related to hardware architecture.
Print the Operating System Name
The-ooption with theunameshows the name of the operating system.
you might either useuname -ooruname -operating systemoption.
you’re free to see GNU/Linux as the output.
It means the operating system is a Linux variant thatuses the GNU system as its foundation.
This is the most common output for popular Linux distributions.
Using Command Options Together
it’s possible for you to also use multiple options together with theunamecommand.
you’re able to create any combination of options to get the information you are looking for.
you’re able to also write the options without spaces, such asuname -rv.
This is useful if you want to know what kind of hardware and software your system is running on.
Use theuname -snrvmocommand to get the same output as theuname -acommand return.
Know Your Linux System Information
You are not limited to theunamecommand for getting system information.
you might also use othersmultiple Linux commandsto get correct information about your Linux system.
These Linux commands help you to manage your system more effectively.
Managing Linux system storage is important for making sure dont run short on space.
For that, you’ve got the option to use commands likedf,fdisk, ormount.
These commands give you the details of storage on your system.
All these commands can help you to gather specific information related to your Linux system.