Command to check the Ubuntu version

LearnTips LearnTips Command to check the Ubuntu version

Tagged: ,

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5118
    Santhosh Kumar D
    Keymaster
    @santhosh

    One can quickly check the Ubuntu version using the lsb_release utility. This command displays LSB (Linux Standard Base) information about the Linux distribution.

    Open your terminal and type the following command:

    lsb_release -a

    You will get an output like this:

    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.04.4 LTS
    Release:        20.04
    Codename:       focal

    The version of your Ubuntu is shown in the description line.

    Instead of printing all the above information, if you just want to see the version of Ubuntu, use the following command.

    lsb_release -d

    You will get an output like this:

    Description:    Ubuntu 20.04.4 LTS

    Learn more Linux commands.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.