What is the uname command in Linux

The uname command is a Linux command-line tool that is used to retrieve and print the system information, such as the kernel name, release version, processor type, and more. It is a versatile command that can be used for different purposes, including debugging, system administration, and programming.

In Linux, this command is pre-installed and readily available for most distros. It can be accessed through the terminal by simply typing uname or with one or more options. 

Using the uname command in Linux

The available options are:

The syntax for uname command
aPrints all available system information, including the kernel name, network node hostname, kernel release version, kernel version, machine hardware name, processor type, and operating system.
sPrints the kernel name
nPrints the network node hostname
rPrints the kernel release version
vPrints the kernel version
mPrints the machine hardware name
pPrints the processor type
iPrints the hardware platform
oPrints the operating system
A list of parameters that can be used with uname

Here are some examples of how to use the uname command:

To print all of the system information, use the -a option:

Print all system details with uname commanbd

Add other parameters as needed from the table for displaying different sorts of system information.

Different parameters for using the uname command

To access the man page for it, type in:

man uname
The man page for uname command

Overall, this command is a quick and handy command for retrieving system information in Linux

There are other system information tools available for a more detailed view like inxi.

All done.

Comments are closed.