Practice the Linux Terminal / CLI
This lab provides hands-on practice with essential Linux command-line skills. You will navigate the file system, create and manage files, work with permissions, and use text editors to modify content—building the foundational abilities needed to confidently operate and manage a Linux server environment.
Session duration: 60 minutes· Typical launch: ~1 min
Difficulty
Beginner
Lab level
Lab VMs
1
1 Linux
XP Reward
300 XP
On completion
Virtual machines
Lab VMs
Ubuntu Server 2404
Linux
Username / Password
user / password123
root / password123
Connection type
In-browser SSH / SSH
CPU / RAM
2 vCPU · 2 GiB RAM
Lab instructions
Follow the steps below to complete the lab.
In this task, you will explore the Linux file system and practice moving between directories using basic navigation commands.
- Use the browser based Linux or open your terminal and SSH into the Linux server.
- Display your current directory:
Bash
- List all files (including hidden):
Bash
- Navigate to the following directory:
Bash
- Confirm your location again using:
Bash
- Create an empty file
Bash
- List all files:
Bash
- Return to your home directory:
Bash
- Confirm your location again using:
Bash
- Click Check step.
You will create directories and files, then manage them using essential Linux commands to build your workspace.
- Create a directory:
Bash
- Navigate into it:
Bash
- Create a file:
Bash
- Create another file with content:
Bash
- List files:
Bash
- Click Check step.
This task focuses on viewing file contents and using tools to efficiently search through large files like system logs.
- View contents of intro.txt:
Bash
- Use less pager::
Bash
- Search for the word error inside the pager, type:
Bash
- Exit less by pressing:
Bash
- Click Check step.
You will learn how to control access to files by modifying permissions and ownership, a critical skill in Linux administration.
- Check permissions:
Bash
- Change permissions of notes.txt:
Bash
- Verify modified permissions:
Bash
- Change ownership user:
Bash
- Click Check step.
In this task, you will use terminal-based text editors to modify files, an essential skill for working on Linux servers.
Option A: Nano
- Open file:
Bash
- Add:
Bash
- Save:
Bash
- Exit:
Bash
- Click Check step.
Option B: Vim
- Open file:
Bash
- Press:
Bash
- Add text
Bash
- Save and exit:
Bash
- Click Check step.