print OS version
-
Many times you need to know what version and or distribution of linux is running. The command varies
lsb_release -a
Example:
No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.10 (jessie) Release: 8.10 Codename: jessie
cat /etc/lsb_release
cat /etc/debian_version
8.10