Linux & Bash: Zero to Confident
0%
linux-lab, bash
Welcome to the DevOpsLesson Linux & Bash Lab 🐧
This is a safe, simulated Linux shell. Nothing runs on your real machine.
Follow the steps on the left. Type a command below, or type 'help' anytime.
Every command this lab teaches
Linux & Bash: Zero to Confident is 17 steps, about 35 minutes. Each one asks a question, you type the answer in the terminal above, and it is checked before you move on. Nothing is installed and nothing can break.
Beginner6 steps
- Print the current username.
whoami - Print the current working directory.
pwd - List the contents of the current directory.
ls - List all entries in long format (including hidden ones).
ls -la - Change into the notes directory.
cd notes - Print the contents of a text file.
cat todo.txt
Intermediate5 steps
- Create a directory named sandbox.
mkdir sandbox - Write a line of text into a new file using redirection.
echo "hello linux" > hello.txt - Make a copy of a file.
cp README.txt README.bak - Rename or move a file with a single command.
mv README.bak notes/ - Count how many lines a file has.
wc -l logs/access.log
Advanced6 steps
- Find the lines in the access log that returned a 404.
grep 404 logs/access.log - Use a pipe to count how many 404s are in the log.
grep 404 logs/access.log | wc -l - Give the deploy script execute permission.
chmod +x projects/app/deploy.sh - Find every .log file under your home directory.
find . -name "*.log" - Count how many times each status code appears in the log.
cut -d" " -f1 logs/access.log | sort | uniq -c - Use sed or awk to rewrite or extract text.
sed "s/engineer/developer/g" data.csv