📅 2012-Dec-15 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ distribution, linux, lsb_release ⬩ 📚 Archive
To find the name, version and details of the Linux distribution you are using from the commandline:
$ lsb_release -idrc
This command on my Ubuntu gives this output:
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
If your Linux system does not have lsb_release, do not despair. The distribution information is usually stored in files with suffix release in the etc directory.
So, try this instead:
$ cat /etc/*release
Tried with: See above 😊