sourcecode

Thursday, June 28, 2012

How do I know which Linux version I am using

http://serverfault.com/questions/3331/how-do-i-find-out-what-version-of-linux-is-running
http://www.cyberciti.biz/faq/howto-find-out-what-kernel-version-running/
$ uname -mrsn

There is no cross-distribution way. However:
  • Redhat and friends: Test for /etc/redhat-release, check contents
  • Debian: Test for /etc/debian_version, check contents
  • Mandriva and friends: Test for /etc/version, check contents
  • Slackware: Test for /etc/slackware-version, check contents
Etc. Generally speaking, check for /etc/*-release and /etc/*-version.

/************END*****************/

No comments: