Skip to main content
eLearner.app

End of the Linux Terminal Course

Summary and final challenge

Congratulations! You have completed the 3 modules of the Linux Terminal Course. From basic navigation and file management to advanced redirection, pipeline chaining, and grep filtering, you now possess the core skills to feel confident in any console. Below is a summary of what you now master, followed by a final boss challenge to put your skills to the test.

01 · Orientation and Navigation

  • pwd (current path)
  • ls, ls -a, ls -l (list files)
  • cd (navigation)
  • absolute/relative paths

02 · Files and Folders

  • mkdir, mkdir -p (directories)
  • touch (empty files)
  • cp, cp -r (copying)
  • mv (moving/renaming)
  • rm, rm -rf (deleting)

03 · Streams and Output

  • echo (print text)
  • cat (view file)
  • > and >> (redirection)
  • pipeline (|)
  • grep, grep -i, grep -r (filtering)

The final challenge

Five commands and streams combined in a single script. You will create a backup directory, extract and filter error logs from a simulated file redirecting them to the correct file, mark the task as done with an empty file, and finally navigate inside the new directory. Apply what you learned across the modules.

Exercise#linux.boss.e1
Attempts: 0Loading…

Solve this scenario in a single script: 1. Create a directory named `final_backup` in your current home folder. 2. Extract all lines containing the word "ERROR" from the log file `/home/user/logs/server.log` and save them into the new file `final_backup/errors.log` (overwriting it if it exists). 3. Create an empty file named `final_backup/done.txt` to mark completion. 4. Change your working directory to `final_backup`.

Loading editor…
Show hint

Use `mkdir final_backup` to create the folder. Use `cat logs/server.log | grep "ERROR" > final_backup/errors.log` to filter and save the output. Use `touch final_backup/done.txt` to create the empty file, and finally `cd final_backup` to enter.

Solution available after 3 attempts

Printable Cheatsheet

A single page containing all the essential Linux Terminal syntax, ready to keep close or print to PDF.

Open the cheatsheet

What now?

The best way to commit commands to long-term memory is free practice. Open our free Terminal Playground to experiment with any commands without constraints, or review the lessons to double-check options and flags.