21 Aug Command to Find Current Ubuntu Version Run this command to find the installed version of Ubuntu… cat /etc/lsb-release
Remya Raman - October 5, 2009 at 10:29 am You can also find it by using: cat /etc/issue Try this out and see what you get! Reply
Binny V A - October 5, 2009 at 1:53 pm Hey – that comment works on Non Ubuntu distros(worked in Fedora) – thanks for the feedback. Reply
d2globalinc - November 18, 2009 at 2:48 am # GET AND SET UBUNTU VERSION INFORMATION D2_OSDIST=”(lsb_release -is)” D2_OSVER=”(lsb_release -rs)” D2_OSNICK=”$(lsb_release -cs)” Here I have set the distribution, version and nickname to variables – using bash. Reply
You can also find it by using:
cat /etc/issue
Try this out and see what you get!
Hey – that comment works on Non Ubuntu distros(worked in Fedora) – thanks for the feedback.
anytime Binny:)
# GET AND SET UBUNTU VERSION INFORMATION
D2_OSDIST=”(lsb_release -is)”
D2_OSVER=”(lsb_release -rs)”
D2_OSNICK=”$(lsb_release -cs)”
Here I have set the distribution, version and nickname to variables – using bash.
Other method:
$ cat /etc/[A-Za-z]*[_-][rv]e[lr]*
Thanks Binny 🙂
Universal:
% lsb_release -a