Getting your System Name and Information in Ubuntu

To check the version of Ubuntu you are running from the command line, you can use one of the following commands:

1. lsb_release -a: This command provides detailed information about the Ubuntu version.

lsb_release -a

2. cat /etc/os-release: This command displays the content of the `os-release` file, which contains information about the operating system.

cat /etc/os-release

3. cat /etc/lsb-release: This command shows information specific to the Linux Standard Base (LSB) of the operating system.

cat /etc/lsb-release

4. cat /etc/issue: This command shows the Ubuntu version information.

cat /etc/issue

5. hostnamectl: This command provides information about the system, including the Ubuntu version.

   hostnamectl

You can use any of these commands to find out which version of Ubuntu you are running.


Revision #1
Created 13 June 2024 05:31:34 by Nate Nash
Updated 4 June 2025 23:32:00 by Nate Nash