● Open lab · Ubuntu 24.04

Online Linux lab: practice real commands in your browser

A Linux terminal that runs right in this page. Type commands, make mistakes safely and work through 15 guided Linux practice exercises, with nothing to install.

Type here: it works

Press Tab to complete names and the arrow keys to repeat commands. If something goes wrong, reload the page and the server starts over.

15 Linux practice exercises

Click a command to have it typed into the terminal, or type it yourself, which sticks better. Under each one is what you should see.

  1. Navigate

    Where am I and what is here?

    pwd prints the folder you are in; ls -la lists everything in it, including hidden files, which start with a dot.

    You should see: /home/estudiante and a listing with .bashrc, .profile, bienvenida.txt, Documentos and proyectos, each with its permissions, owner and size.

  2. Navigate

    Go into a folder and come back

    cd changes folders and cat prints a file. Watch the prompt change. The ~ sign is your home folder.

    You should see: The README contents ("# Nube Volcán"), the prompt showing ~/proyectos/nube-volcan and, after the second command, back in /home/estudiante.

  3. Create files

    A folder and a file with text

    mkdir -p creates the folder; echo with > writes the text into a new file (or replaces it if it exists); cat reads it back.

    You should see: hola linux

  4. Create files

    Copy, move and rename

    cp copies and leaves the original in place. mv moves, and when the target is a new name in the same folder, it renames.

    You should see: First bienvenida.txt inside Documentos; then leame.txt in its place.

  5. Permissions

    A file only you can read

    chmod 600 leaves read and write for the owner and nothing for anyone else: 6 = read (4) + write (2).

    You should see: -rw------- 1 estudiante estudiante 0 … /home/estudiante/secreto.txt

  6. Permissions

    Your first executable script

    Without the x permission, Linux will not run a file even if it contains commands. chmod +x adds it.

    You should see: Hola desde mi script

  7. Users

    Who am I and which groups am I in?

    whoami prints your user; id prints your user number (uid) and your groups. Being in the sudo group is what lets you administer the server.

    You should see: estudiante, then uid=1000(estudiante) gid=1000(estudiante) with the adm and sudo groups.

  8. Users

    Create a user and add a group

    useradd -m creates the user with a home folder. usermod -aG adds a group without removing the ones she already had (without -a, it removes them).

    You should see: uid=1001(ana) gid=1001(ana), then ana : ana sudo.

  9. grep and pipes

    Find a line in a file

    grep prints only the lines that contain the text you are looking for. /etc/passwd has one line per user, with fields separated by colons.

    You should see: estudiante:x:1000:1000:Estudiante de la Academia:/home/estudiante:/bin/bash

  10. grep and pipes

    Chain commands with |

    The | pipe hands one command’s output to the next. The second example counts failed SSH logins grouped by IP address, the first thing you check during an incident.

    You should see: Five user names in alphabetical order, then how many failed attempts came from 198.51.100.7 and from 203.0.113.45.

  11. Processes

    See which programs are running

    ps aux lists every process on the system; grep keeps the ones you care about. The second column is the PID, the number you use to control each process.

    You should see: The sshd lines (the SSH server) running as root, with their PID.

  12. Processes

    A background process

    The trailing & keeps the command running and gives you the prompt back. jobs lists what is in the background and kill %1 stops job number 1.

    You should see: [1] and a PID; then the job listed as running (Ejecutando) and, at the end, terminated (Terminado).

  13. Services

    Check and restart a service

    systemctl controls services: status tells you whether it is running, restart restarts it. journalctl -u shows that service’s log.

    You should see: active (running) in green; after the restart, the Stopping…, Starting… and Started ssh.service lines.

  14. Disks

    See the disks and free space

    lsblk draws the disks and their partitions; df -h tells you how much space is left on each mounted file system.

    You should see: sda with partitions sda1 and sda2 plus three unused disks (sdb, sdc, sdd); then the root / at 39G and 24% used.

  15. Network

    Addresses, ports and connectivity

    ip -br a sums up the interfaces and their addresses; ss -tln shows the ports waiting for connections; ping -c 2 checks that you can reach the internet.

    You should see: enp0s3 UP with 10.0.2.15/24; port 22 (SSH) in LISTEN; and two replies from 203.0.113.10 with 0% packet loss.

What is the Linux terminal?

The terminal is the window where you talk to a computer in text instead of clicks. You type an instruction, such as ls to see what is in a folder, press Enter and the system answers. The program that reads those instructions is called the shell; on almost every server it is bash, the same shell this lab runs.

Why learn it when there are windows and a mouse? Because servers have no screen. Most websites, cloud applications and company systems run on Linux servers that are managed remotely, over SSH, with nothing but a terminal. If you can use one, you can create users, find out why a service went down, free up disk space or spot in the logs who tried to get in without permission. It is the foundation for jobs in IT support, infrastructure, cloud, DevOps and cybersecurity.

The prompt, estudiante@academia:~$, tells you three things: which user you are (estudiante, Spanish for "student"), which machine you are on (academia) and which folder you are in (~, your home folder). When the last sign changes from $ to #, you are working as root, the administrator, and it pays to slow down.

Why practice Linux in the browser

The usual way to practice Linux is a virtual machine: download an image of several gigabytes, give it memory and disk, and hope your computer keeps up. The other option is renting a cloud server and remembering to shut it down. That is a lot of setup for someone who just wants to understand what chmod does.

This lab skips all of it:

  • Nothing to install. Open the page and an Ubuntu 24.04 server is ready, with sudo, disks, networking and services.
  • No virtual machine. It does not eat your computer's memory or ask you to turn on virtualization.
  • Safe to break. Deleted something you should not have? Reload the page and the server starts clean.
  • Any device. Windows, Mac, Linux, a Chromebook or your phone, which gets a key bar with Tab, arrows and the hard-to-type symbols.
  • No account. No sign-up and no email address.

Most of all, you learn by typing. Watching someone else enter commands in a video feels like understanding; getting a path wrong, reading the error and fixing it is what actually stays with you.

What you can do in the lab, and what you cannot

The server understands more than 200 commands, written to behave like a real Ubuntu machine, with their options, messages and errors:

  • Files and folders: ls, cd, mkdir, cp, mv, rm, find, tree, ln, tar and the nano and vim editors.
  • Permissions: chmod, chown, umask and access control lists with setfacl.
  • Users and groups: useradd, usermod, passwd, groups, sudo and visudo.
  • Text: grep, cut, sort, uniq, wc, awk, sed and tr, plus the pipes and redirections that join them.
  • Processes and services: ps, top, kill, jobs, systemctl, journalctl and crontab.
  • Disks: lsblk, df, du, fdisk, mkfs, mount and LVM volumes.
  • Networking: ip, ss, ping, dig, ssh and the ufw firewall.
  • Packages: apt install for programs such as nginx, htop, tree or docker.io.
  • Bash scripts with variables, if and for.

Now the limits, so you know what to expect. It is not a virtual machine: it is a hand-written simulation running in your browser, so it does not run outside programs, compile code or offer a desktop. The network is simulated too: ping, curl and ssh respond the way they would, but nothing leaves your browser. apt installs only the packages in the lab's catalog. And nothing on this page is saved: reload it and the server goes back to its starting state.

One more thing: the server uses a Spanish locale, so you will see a few messages in Spanish, such as grupos= in the output of id or the column headers of df and free. The commands themselves are identical to any Linux system.

For learning commands and how a server is run, it is more than enough. To host your own application you will need a real server, and by then you will know what to do with it.

Where to go next: the Linux+ course

These exercises are a taste. Our Linux+ in 15 days course uses this same lab, with a story: you join Nube Volcán, a fictional company, and every day you get real tasks on its server. Tasks check themselves instantly, and if you get stuck you can ask for a hint.

The course follows the five domains of the CompTIA Linux+ XK0-006 exam and includes 16 lessons with labs, a quiz for every lesson and 3 full practice exams in the format of the official one.

Please note: the full course is taught in Spanish. Lessons, lab tasks, hints and explanations are in Spanish. The practice exams are written in English, like the real CompTIA exam, with explanations in Spanish. The first lesson can be taken without paying, so you can check whether the Spanish works for you before deciding.

$99 $149

Full Linux+ course · US dollars (USD) · one-time payment · 12 months of access · taught in Spanish

Buy the course · $99

Credit or debit card, PayPal or bank transfer

How would you like to pay?

Linux+ course (taught in Spanish) $99 USD
One-time payment · 12 months of access

Close

Does your whole team need this course? Per-employee pricing from 5 people.

Ask about employee packages

Want to test yourself first? Take the Linux+ sample practice exam, with a timer and a hands-on question in the terminal.

Frequently asked questions

No. The lab runs inside this page, in your browser. There is nothing to download, no virtual machine to set up and no account to create.

No. The terminal and the exercises on this page are open to anyone. If you later want the full Linux+ course, the first lesson can be taken without paying, complete with its lab and quiz.

It is a simulated Ubuntu 24.04 server: more than 200 commands written to answer with the same options, messages and errors as a real server. It is not a full virtual machine, so it does not run outside programs or reach the internet.

The lab server is set to a Spanish locale, the way it is used in our course, so a few messages and column headers appear in Spanish. The commands, options and file paths are exactly the same as on any Linux server.

No. The full course is taught in Spanish: lessons, lab tasks, hints and explanations. The practice exams are written in English, like the official CompTIA exam. If you read Spanish comfortably, you can follow it.

Yes. On touch screens a key bar appears with Tab, the arrow keys, Ctrl+C and the symbols that are hard to type on a phone keyboard, such as the pipe and the tilde. For longer sessions a physical keyboard is more comfortable.

Esta página en español.

Message us now!