Find Your Linux Release Info

What’s the likelihood of you not knowing which version of Linux distro you are running? It’s probably a lot higher than you expect. I’ve had to do this at least twice before. If you’re not sure or you simply want to validate your distro, you can run the following commands to get the distro info.

Ubuntu

$ cat /etc/lsb-release

Fedora

$ cat /etc/fedora-release

Debian

$ cat /etc/*release

OpenSuse

$ cat /etc/SuSE-release

In Ubuntu, running the command above returns the following info.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION=”Ubuntu 10.04.3 LTS”

If you enjoyed this article, please share it with others using the social buttons below. If you like to be updated when a new article is published, please subscribe via email, RSS or follow me on Twitter: @ulyssesonline.

  • Twitter
  • Facebook
  • Delicious
  • Digg
  • StumbleUpon
  • Google
  • LinkedIn
  • Google Reader
  • FriendFeed
  • Reddit
  • Tumblr
  • Live
  • PDF
  • Email
  • RSS
  • Add to favorites

Related Articles

No Comments