Computer Science Atlas
Tutorial

How to Show the Ubuntu Version You're Using

February 15, 2021
 

Step 1. Open a Terminal Session

If you're using an Ubuntu laptop or desktop, you can press Ctrl + Alt + T on your keyboard to open a new terminal window. If you're using a remote Ubuntu server, you can connect using SSH to open a new terminal session.

Step 2. Use lsb_release

Run the following command to see Ubuntu version info:

Bash
Copy
lsb_release -a
$
lsb_release -a

You should see output similar to the following:

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