Ubuntu

Get Ubuntu Version Number Or Codename From Terminal

Posted by Weston Ganger on June 21, 2016

Sometimes you need to know what the codename or release number is for your Ubuntu computer. Heres how to simply get them from the terminal.


# to get all release information
lsb_release -a
# No LSB modules are available.
# Distributor ID:	Ubuntu
# Description:	Ubuntu 14.04.4 LTS
# Release:	14.04
# Codename:	trusty

# to get only the release number
lsb_release --release | cut -f2
# 14.04

# to get only the codename
lsb_release --codename | cut -f2
# trusty


Related External Links:


Posted in Linux and Tagged with ubuntu 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts