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 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts