Linux Exercises

Sharpen Linux command-line skills through a series of hands-on exercises. This collection of practical challenges is designed to simulate real-world scenarios, enabling users to apply and reinforce knowledge of Linux systems, file management, scripting, and system administration. Each exercise provides an opportunity to solve common problems encountered in professional environments, solidifying understanding and building practical expertise.

Display User and Group Information

Display User and Group Information

In this challenge, you need to use the Linux command to display user and group information.
ChallengeLinux
Check Mounted File System Usage

Check Mounted File System Usage

In this challenge, we will write a script to determine whether a given file system or mount point is mounted. We will use the df command to check if the file system is mounted or not. If it's mounted, we will print the free space available in it, otherwise, we will print an error message.
ChallengeLinux
Archive a Draft File

Archive a Draft File

Move and rename one draft file without changing its content.
ChallengeLinux
User Account Management

User Account Management

In this lab, we will introduce how to manage the user account in the Linux platform, such as creating new user accounts, modifying the user account management, and deleting a user account.
LabLinux
Onboard a Practice User

Onboard a Practice User

Create one normal Linux user and grant access to one existing supplementary group.
ChallengeLinux
Find and Protect a Configuration File

Find and Protect a Configuration File

Locate one exact configuration file and make it private to its owner.
ChallengeLinux
File and Directory Operations

File and Directory Operations

Build practical Linux file skills by navigating paths, creating and editing files, inspecting metadata, working with links, and comparing files and directories.
LabLinux
Get Help on Linux Commands

Get Help on Linux Commands

Learn how to identify commands, read quick usage text, navigate manual pages, and discover commands by topic without memorizing every option.
LabLinux
Basic File Operations in Linux

Basic File Operations in Linux

Learn how Linux paths, directories, files, listings, wildcards, copy, move, removal, and terminal shortcuts fit together in one safe workspace.
LabLinux
Linux User Group and File Permissions

Linux User Group and File Permissions

Learn to manage Linux users, groups, account locks, ownership, default permissions, sticky directories, and setgid collaboration in a safe practice environment.
LabLinux
Your First Git Lab

Your First Git Lab

Learn the basics of Git version control by creating your first repository, adding files, and making commits. This hands-on lab will guide you through the fundamental Git commands and workflows.
LabLinux
Your First Rust Lab

Your First Rust Lab

Hi there, welcome to LabEx! In this first lab, you'll learn the classic 'Hello, World!' program in Rust.
LabLinux
Reading a CSV File

Reading a CSV File

In this lab, we will learn how to read a CSV file in Java. CSV files are often used to store data in a simple and easily readable format. We will cover three different approaches to reading CSV files in Java: using BufferedReader, Scanner, and the OpenCSV library.
LabLinux
Spy in Mockito

Spy in Mockito

Mockito is a Java framework used for mocking and unit testing Java applications. In this lab, we will learn about spies in Mockito. A Spy is like a partial mock, which will track the interactions with the object like a mock. Additionally, it allows us to call all the normal methods of the object. We will use the Mockito.spy() method and annotations to create spies and demonstrate how to stub a Spy.
LabLinux
Circle Area and Circumference in C

Circle Area and Circumference in C

In this lab, we will learn how to write a C program to find the area and circumference of a circle. We will use the formula area = PI radius radius and circumference = 2 PI radius. We will be using the stdio.h library to read and write data.
LabLinux