hello guys, and welcome to another Linux tutorial. In this tutorial, I’m going to show you
two different ways you can find your Linux Mint version and codename. As a Linux user you should know how to find this information as this is very important for many task for example: software installation, upgrades, etc. Here I’ll cover two ways we can to this. The first one using the graphical interface, and the second one using the command line.
Find version / code name using graphical interface:
1- Click on menu
2- Click on “System Tools”
3- Click on “System Monitor”
4- Click on “System” tab
Here we can find general information about the system.
Linux Mint release version
Platform (32/64) bit
Find version / code name using the terminal:
1- Click on “Menu”
2- Click on “Accessories”
3- Click on “terminal”
4- Next enter command:
$ cat /etc/linuxmint/info
DESCRIPTION="Linux Mint 17.3 Rosa"
GRUB_TITLE=Linux Mint 17.3 MATE 64-bit
As you can see, we get the same information as the first method. However, using the command to get Linux version has the benefit to use it in a script. For example, if we wanted to get the version name and code name within a script, we could do something like…
$ release=$(grep 'RELEASE=' /etc/linuxmint/info | cut -d= -f2)
$ echo $release
$ codename=$(grep 'CODENAME=' /etc/linuxmint/info | cut -d= -f2)
$ echo $codename
The above commands first assigns the value 17.3 to the variable release. Then it echo the result to the screen. It uses the file /etc/linuxmint/info to extract this information. The next example, uses the same procedure to extract the value “Rosa” and assign to variable $codename. These can be used within a script.