
Your First Linux Lab
Welcome to LabEx! This introductory lab guides you through the classic "Hello, World!" program in Linux. You'll also learn some essential commands.
LinuxShell

How to Troubleshoot Unbound Variables in Bash Scripts
Discover how to identify and handle unbound variables in your Bash scripts, ensuring your scripts run smoothly and without errors.
Shell

Process Arguments in Bash Scripts
In this RHCSA 9 challenge, you will create a bash script that processes command-line arguments, demonstrating essential scripting skills required for the RHCSA exam. Practice file creation, permission management, and bash scripting techniques on Red Hat Enterprise Linux 9.
LinuxShell

How to Set Default Values in Bash Scripts
Explore how to set default values in Bash scripts and ensure your scripts handle missing or optional parameters gracefully. Learn advanced techniques and use cases for managing default values.
Shell

How to Use Bash if Statements with Multiple Conditions
Discover how to leverage Bash if statements with multiple conditions to create powerful and flexible shell scripts. Explore practical applications and master the art of combining logical operators for advanced scripting.
Shell

How to print the value of a variable in a shell script
Discover how to effectively print the value of a variable in a Shell script. Learn the basics of Shell variables and explore practical applications for this essential technique.
Shell

Utilizing Bash Key-Value Arrays in Shell Scripting
Discover how to leverage the power of Bash key-value arrays in your shell scripts. Enhance your scripting capabilities and create more efficient and versatile solutions.
Shell

How to Remove Matching Elements from a Bash Array
Learn how to effectively remove matching elements from Bash arrays, a common task in shell scripting. Discover practical applications and use cases for this technique.
Shell

How to Format Strings in Bash Scripts
Learn how to effectively format strings in Bash scripts, from basic techniques to advanced examples. Discover the power of Bash string manipulation and enhance your scripting skills.
Shell

Finding the Pirate's Treasure
Learn shell scripting basics by decoding Captain Blackbeard's treasure map using shell variables and arithmetic operations. Practice creating executable scripts, using variables, and performing arithmetic calculations in Bash.
ShellLinux

Passing Arguments to the Script
Learn the art of passing and handling arguments in Shell scripts. This hands-on lab will guide you through creating a script that accepts command-line arguments, accessing them using special variables, and implementing logic based on the number and content of these arguments.
ShellLinux

Shell Arrays
Explore the power of arrays in shell programming through this hands-on lab. Learn to create, manipulate, and access elements in arrays, enabling efficient data organization and manipulation in your shell scripts.
ShellLinux

Arithmetic Operations in Shell
Learn arithmetic operations in Shell programming through this hands-on lab. Learn to perform calculations, use variables, and employ basic arithmetic operators to solve real-world problems like calculating costs in a shell script.
ShellLinux

Basic String Operations
Dive into essential string manipulation techniques in shell scripting. This hands-on lab covers string length calculation, character position finding, substring extraction, and string replacement, providing you with practical skills for text processing in shell scripts.
ShellLinux

Conditional Statements in Shell
In this lab, you will learn how to use conditional statements in shell programming to make logical decisions. You'll practice writing if-else statements, using elif for multiple conditions, performing numeric and string comparisons, and combining conditions with logical operators. By the end of this lab, you'll be able to create shell scripts that can make decisions based on various conditions.
LinuxShell

Bash Scripting Loops
In this lab, you will master the use of loops in Bash scripting. You'll learn how to implement for, while, and until loops to efficiently repeat instructions. Additionally, you'll explore break and continue statements to control loop execution. By the end of this lab, you'll be able to create more dynamic and flexible Bash scripts using various loop structures.
ShellLinux

Four Function Calculator
In this challenge, you'll create a basic four-function calculator using shell scripting. You'll implement functions for addition, subtraction, multiplication, and division, handling various scenarios including division by zero. This exercise will help you practice function definition, arithmetic operations, and error handling in bash scripting.
ShellLinux

Interstellar Cargo Manifest
Welcome, space cadet! As a trainee cargo officer on the interstellar ship 'Nebula Nomad,' your task is to create a simple inventory system for the ship's three cargo bays. You'll write a shell script to manage and display the contents of each bay, handling different user inputs and providing appropriate responses.
ShellLinux