Course Includes:
- Price: FREE
- Enrolled: 0 students
- Language: English
- Certificate: Yes
- Difficulty: Advanced
Test How Well You Really Know Bash and the Linux Command Line
Shell scripts look simple until one line does something you did not expect. Why does a variable set inside a while loop come back empty? Why does [ $x = "a b" ] complain about too many arguments? Why does set -e not stop a script when a command fails inside a function called from an if? Why does sort file > file leave you with an empty file? These practice tests check how well you can predict what Bash and the standard Linux tools really do, one short script at a time.
What this practice test course offers:
Topics covered:
Assumed environment: GNU Bash 5 on Linux with GNU coreutils, grep, sed and findutils. awk questions use only POSIX awk features, so they behave the same in gawk and mawk. Where sorting or character classes matter, the scripts set LC_ALL=C.
Who should take this course?
If you have never used a terminal, start with a Linux command-line fundamentals course and come back here to test yourself.
How to use the tests: take one test at a time, then read every explanation, including the ones for questions you answered correctly. Try the scripts in your own terminal, then retake a test a few days later to check that the rules have stuck.
This course is independent and is not affiliated with or endorsed by the Linux Foundation, the GNU Project or the Free Software Foundation.