Articles > GNU Bash Quiz
Test your knowledge of GNU Bash with this quiz!
- The bash comment character is (a) %, (b) # or (c) ! ? (Easy)
- According to the bash quoting rules, what does echo "\'" print ? (Think carefully)
- Bash supports while loops, such as while ... done. Is the form of an until loop until ... done or do ... until?
- What is the difference between ( cd foo; ls; ) and { cd foo; ls; }?
- What is the meaning of ${FOO:+BAR}?
- What is the difference between $(ls) and `ls`
- What is the result of type help ?
- How can you test if a file is writable ?
- What command will put a job in the background so it keeps running after logging out ? (Hint: not bg)
- Name two ways to search through the interactive command history.
All answers can be found in "The GNU Bash Reference Manual (version 3.2)" (ISBN 0-9541617-7-7) by Chet Ramey and Brian Fox.