How to check Linux OS version through command prompt

Use following check Linux OS version through command linux operating system version. There are so many linux commands which are useful but sometimes you need to know about hosting server details and their operating system.

following command will useful for fedora, centos, redhat os.

#uname -a

I got the following result after this command.

Linux purab-5745 3.8.0-29-generic #42-Ubuntu SMP Tue Aug 13 19:40:39 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

If you have debian OS than, you can use following command.

cat /etc/debian_version

Normally above command will show the your kernel version information.

Following command also shows the OS version

cat /proc/version
cat /etc/redhat-release

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.