# Linux - check distribution release version ###### tags: `linux` ``` [ Ubuntu ] ----------------------------------- lsb_release -a [ CentOS ] ----------------------------------- cat /etc/centos-release cat /etc/redhat-release [ Fedora ] ----------------------------------- cat /etc/issue cat /etc/redhat-release cat /etc/fedora-release !!! Sample output [ lsb_release -a ] root@admin:~/my-cluster# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty [ uname -r ] root@admin:~/my-cluster# uname -r 3.19.0-25-generic [ cat /proc/version ] root@admin:~# cat /proc/version Linux version 3.19.0-25-generic (buildd@lgw01-20) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 [ cat /etc/lsb-release ] root@admin:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS" [ cat /etc/os-release ] root@admin:~# cat /etc/os-release NAME="Ubuntu" VERSION="14.04.3 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.3 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up