Skip to main content

Determining Which Distribution Is Running on a Host

Hands-On Lab

 

Photo of Michael Christian

Michael Christian

Course Development Director in Content

Length

00:30:00

Difficulty

Beginner

In this hands-on lab, we will determine the Linux distribution that is running on the lab host. As a System Administrator, it's not uncommon to log into an unfamiliar system to perform troubleshooting and other tasks, and this lab gives us a chance to practice discovering details about the operating system.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Determining Which Distribution Is Running on a Host

Introduction

In this hands-on lab, we will determine the Linux distribution that is running on the lab host.

Connecting to the Lab

  1. Open your terminal application, and run the following command (remember to replace <PUBLIC_IP> with the public IP you were provided on the lab instructions page):
    ssh cloud_user@<PUBLIC_IP>
  2. Enter yes at the prompt.
  3. Enter your cloud_user password at the prompt.

View the Release Files

  1. List the current working directory.
    pwd
  2. Run the following command:
    cat /etc/*release*

View the Issue Files

  1. Run the following command:
    cat /etc/*issue*

Run a Utility to Determine the Linux Distribution

  1. Run the following commands:
    lsb_release -a
    hostnamectl

Conclusion

Congratulations, you've successfully completed this hands-on lab!