01 · Orientation and Navigation
- pwd (current path)
- ls, ls -a, ls -l (list files)
- cd (navigation)
- absolute/relative paths
End of the Linux Terminal Course
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.
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.
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`.
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
A single page containing all the essential Linux Terminal syntax, ready to keep close or print to PDF.
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.