Linux Labs

First steps / Stage 1 of 15

Understanding Linux and your terminal

Not running Starting usually ~20 s
Leave the lesson

Step 1 of 8 · on a machine · 3 min

Ask the system what it is

What you will learn

  • Tell the kernel from the distribution, and the terminal from the shell.
  • Explain how a program differs from a process and a service.
  • Find out the user, machine name, kernel release, and current directory.

You have been given access to a server, and the ticket says "Ubuntu 24.04". Before you start working, ask the machine itself what system it is.

The server here is the trainer's practice machine: commands run on it, and your own computer is not touched.

Exercise · look

What the system calls itself

Ask the system about itself with two commands: each prints the system's name and its release number. The line No LSB modules are available. is a service message from lsb_release; it has nothing to do with the release.

First, predict

The machine runs Ubuntu 24.04. What will the first command, uname -sr, print?

Now start the exercise, run the command and compare your prediction with the output.

Sign in and start The machine is available after signing in
Check yourself 1 question

Why do the two commands name the same machine differently?

  • Both commands went into one terminal, one after the other, and it is connected to one training machine.

  • Both commands ask the running system and print its current numbers. Linux is not Ubuntu's old name: both names exist in the system at the same time.

  • Someone starts a browser, but you never started Ubuntu: lsb_release -ds named the system that was already running when you logged in.

uname reports on the kernel, which is called Linux, and lsb_release on Ubuntu, the distribution built around that kernel.

Ubuntu 24.04
Loading…