Get the Current Version of Ubuntu via the Command Line
Using the command line, how can you get the current version of Ubuntu on your machine?
Open a terminal window (CTRL
+ALT
+T
shortcut) and execute this command:
lsb_release -d
This will output something similar to this:
Description: Ubuntu 18.04 LTS
You can also list out more information about Ubuntu with this command:
lsb_release -a
This will output something similar to this:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Thanks for reading and happy coding!