Sometimes when you are working with your Linux and you face an error and you go to a forum or help center, they ask for your Linux version in order to help you. I’m going to describe how to get your Linux version.
Almost always it is safe to passby this info, though there are cases that you should not do so due to some security reasons. for instance when you had published your servers IP or other related info.
Anyway, I’m going to describe how to get your Linux version (at least it is good for you to know your OS better):
There are several ways to get these kind of info, though some commands give you more detailed info and some just provide you a single line with few words.
1. The less informative one is:
# General command cat /etc/issue # for Fedora cat /etc/fedora-release # for Redhat cat etc/redhat-release
which you should fine the propper command for your distribution. will output a single line. (This is the output for my Netbook):
Fedora release 17 (Beefy Miracle)
2. There is another command which produce a bit more data:
This is the output:
Linux NixSOS-NB 3.7.9-101.fc17.i686 #1 SMP Mon Feb 18 22:55:49 UTC 2013 i686 i686 i386 GNU/Linux
3. The other command provide you more detailed info of your OS:
which has several lines as an output (This is the output for my Netbook):
LSB Version: :core-4.1-ia32:core-4.1-noarch:cxx-4.1-ia32:cxx-4.1-noarch:desktop-4.1-ia32:desktop-4.1-noarch:languages-4.1-ia32:languages-4.1-noarch:printing-4.1-ia32:printing-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 17 (Beefy Miracle)