This file contains all the information about your system, like PRETTY_NAME, VERSION_ID, VERSION, VERSION_CODENAME, and other support information about distributions. However, only the first part of the code name is being displayed. Run it with -a flag to get Ubuntu version and code name: lsbrelease -a. lsbrelease -a No LSB modules are available. The command lsbrelease from the Linux Standard Base package displays information about the operating system version and kernel version. For example: cat /etc/issue Ubuntu 18.04 LTS \l Visit our guide for a more detailed information on. cat /etc/os-release less /etc/os-release. You can use the ‘cat’ or ‘less’ command to display the contents. Same is with all the other Debian based GNU/Linux systems, to check the system version read the content of the /etc/issue file. Another method you can use to know your Linux distribution and version is checking the contents of the ‘ os-release ‘ file in the ‘/etc. Use the lsbrelease -a command to display the Ubuntu version. Visit our guide for a more detailed information on how to check Linux Mint version. If you ask me one of the common ways to check the version of Ubuntu or any other Linux distro, then without thinking much, I’ll suggest you to read the /etc/os-release file. Method 1: In order to check the version of GCC installed on your Ubuntu system using this method, issue the following command. Follow the steps below to check the Ubuntu version from the command line: Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon. The most common way to check the version of a Linux distribution is as follows: Check Ubuntu version by using /etc/os-release Some of the commands will display information like hostname, kernel version, architecture, codename, and much more other information about your Ubuntu distribution. Check the Ubuntu version by using NeofetchĪs I said earlier, there are several ways to get information about the Linux version.You can view /etc/lsb-release file content to fine Ubuntu version and version-specific details. Check the Ubuntu version by using Screenfetch Method 1: Check Ubuntu version in /etc/lsb-release File The /etc/lsb-release is the main file, which contains the Ubuntu version details.Check the Ubuntu version by using lsb_release.Check Ubuntu version by using hostnamectl.Check Ubuntu version by using /etc/os-release To check the Ubuntu version, use the following command in terminal: lsbrelease -a This will show you some details about your distribution, including Ubuntu version: Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal There are other ways to find the Ubuntu version I'll be discussing in detail in this article.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |