Best Uname Linux commands with examples – Easy way to check the Linux version

In this article we will explain examples of uname Linux commands. You can use the “uname” command to check the Linux version and system information. You can use the uname command to check operating system details, kernel version, and operating system architecture, regardless of whether they are 32-bit or 64-bit files. So let’s take a look at the uname Linux commands with examples.

Best Uname Linux commands with examples – Easy way to check the Linux version

uname Linux command with examples to check the Linux version and system information:

Simply check which operating system you are currently using. Just use the following command.

[[email protected] ~]# uname   # Check the Operating System
Linux

You can also use the uname command with an argument -s to check the name of your current operating system. See the following command.

[[email protected] ~]# uname -s
Linux

Use the uname Linux command to check the Linux version and get the following system information:

  • Operating system name
  • The host name of the system
  • kernel version
  • Operating system architecture, d. H. 32 bit or 64 bit
  • Kernel publishes & compiles date & time

To get all the details above, you can use the uname command with an argument -on, See the following command.

[[email protected] ~]# uname -a   # Check all System Information
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Use the uname Linux command with an argument -n to check the hostname or network name of your operating system.

[[email protected] ~]# uname -n   # Check the Hostname of the System
localhost.localdomain

To check the kernel release version, simply use the uname Linux command with an argument -r, Here is my kernel version 2.6.32-431.el6.x86_64,

[[email protected] ~]# uname -r   # Check Kernel Version
2.6.32-431.el6.x86_64

Read also – How to install the Hardinfo System Information Tool in Ubuntu 18.04

You can check the hardware type of your system using the uname Linux command with an argument -m, See the following command.

[[email protected] ~]# uname -m   # Check the Hardware type
x86_64

Use the following command to check the processor type. Here we use the processor type x86_64.

[[email protected] ~]# uname -p   # Check the Processor Type
x86_64

To check the hardware platform, use the uname Linux command with an argument -I,

[[email protected] ~]# uname -i   # Check the Hardware Platform
x86_64

To check the current operating system, use the uname Linux command with an argument , As you can see from the issue below, we are currently using the GNU / Linux operating system

[[email protected] ~]# uname -o   # Check the Operating System
GNU/Linux

Use the uname command with an argument to check the compiled kernel version with date and time -v, As you can see below, the output of this command is # 1 SMP Fri Nov 22 03:15:09 UTC 2013, This is where the kernel is compiled for the first time, so it is displayed # 1,

[[email protected] ~]# uname -v   # Check Kernel compiled version
#1 SMP Fri Nov 22 03:15:09 UTC 2013

For more information on the uname Linux command with all of the available arguments, go to the help page using the following command.

[[email protected] ~]# uname --help   # Access the Help Page
Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

  -a, --all                print all information, in the following order,
                             except omit -p and -i if unknown:
  -s, --kernel-name        print the kernel name
  -n, --nodename           print the network node hostname
  -r, --kernel-release     print the kernel release
  -v, --kernel-version     print the kernel version
  -m, --machine            print the machine hardware name
  -p, --processor          print the processor type or "unknown"
  -i, --hardware-platform  print the hardware platform or "unknown"
  -o, --operating-system   print the operating system
      --help     display this help and exit
      --version  output version information and exit

Check the installed uname package version with the following command. The output shows you the name of the author, the release date of the package, license details, the official website of this package and much more.

[[email protected] ~]# uname --version   # Check Package Version
uname (GNU coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.

Read also – How to install the Neofetch System Information Tool in Ubuntu 18.04

That’s all. In this article, we explained best Uname Linux commands With examples – Easy way to check the Linux version. I hope you like this article. If you like this article, just share it. If you have any questions about this article, please comment.

Sidebar