Method #1
dmesg | grep "Linux Version"
The dmesg command contains the kernel buffer, which can be rather extensive. Which is why it is important to grep the command. The Kernel buffer wont always list the linux version, so you may want to play with the command, like grep "linux" or grep "ver".
Method #2
cat /proc/version
This method looks at a file with the version listed in it. This may be especially helpful on redhat boxes that may be harder to find. Though there still may be some confusion in the case of systems based on redhat (e.g. CentOS, Fedora)
Method #3
uname -a
The uname command may possibly tell you what you need to know, however often times it may just report the kernel version.
Conclusion
Hopefully these commands will help locate the information you need. There are a few other ways to check that may just be a matter of logical troubleshooting or example which type of package management is available? Good Luck!
References:
http://www.novell.com/coolsolutions/qna/11175.html
http://en.wikipedia.org/wiki/Dmesg
http://www.programmersheaven.com/mb/Linux/313775/313775/how-to-check-linux-version-from-command-line/?S=B20000
http://www.linuxforums.org/forum/redhat-fedora-linux-help/35851-find-redhat-linux-version.html
No comments:
Post a Comment