Linux uname Command and Examples

0

Full article

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

uname-default

To print all the information about your system.

uname -a 

uname-a

To print the kernel release

uname -s

uname

To print the hostname of your linux enviroment

uname -n

uname-n

To print the kernel release

uname -r

uname-r

To print the version of uname

uname -v

uname-v

To print the name of your hardware machine

uname -m

uname-m

To print the processor type

uname -p

uname-p

To print hardware platform

uname -i

uname-i

To print the operating system

uname -o

uname-o

uname --help

uname-help

Conclusion

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

Author

Comments