How-To Guides and Blog

Linux uname Command and Examples

NBH Support
NBH Support
No Comments

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

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print all the information about your system.

uname -a 

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print the kernel release

uname -s

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print the hostname of your linux enviroment

uname -n

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print the kernel release

uname -r

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print the version of uname

uname -v

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print the name of your hardware machine

uname -m

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print the processor type

uname -p

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print hardware platform

uname -i

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

To print the operating system

uname -o

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

uname --help

, Linux uname Command and Examples, New Blog Hosting, New Blog Hosting

Conclusion

By now you should know what uname command does and how to make full use of it.

Leave a Comment