uname is a very useful command in Linux, it allows you to check information about your Linux environment.
uname
without an option will print only the kernel name of your operating system not the version. That’s why when you type uname it gives you only Linux on screen because that’s the kernel name.
Check the examples below how to get more information about your system such as kernel name, linux kernel version, kernel release, processor, hardware machine name, hardware platform and operating system name.
uname
To print all the information about your system.
uname -a
To print the kernel release
uname -s
To print the hostname of your linux enviroment
uname -n
To print the kernel release
uname -r
To print the version of uname
uname -v
To print the name of your hardware machine
uname -m
To print the processor type
uname -p
To print hardware platform
uname -i
To print the operating system
uname -o
uname --help
By now you should know what uname
command does and how to make full use of it.