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.
 
devops@devops-box:~$

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

  1. Print the current username.whoami
  2. Print the current working directory.pwd
  3. List the contents of the current directory.ls
  4. List all entries in long format (including hidden ones).ls -la
  5. Change into the notes directory.cd notes
  6. Print the contents of a text file.cat todo.txt

Intermediate5 steps

  1. Create a directory named sandbox.mkdir sandbox
  2. Write a line of text into a new file using redirection.echo "hello linux" > hello.txt
  3. Make a copy of a file.cp README.txt README.bak
  4. Rename or move a file with a single command.mv README.bak notes/
  5. Count how many lines a file has.wc -l logs/access.log

Advanced6 steps

  1. Find the lines in the access log that returned a 404.grep 404 logs/access.log
  2. Use a pipe to count how many 404s are in the log.grep 404 logs/access.log | wc -l
  3. Give the deploy script execute permission.chmod +x projects/app/deploy.sh
  4. Find every .log file under your home directory.find . -name "*.log"
  5. Count how many times each status code appears in the log.cut -d" " -f1 logs/access.log | sort | uniq -c
  6. Use sed or awk to rewrite or extract text.sed "s/engineer/developer/g" data.csv