Home > Unix Programming > Quizzes > Bash Basics Questions
Bash Basics Questions
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 50% Most missed: “How?”

Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell.

Bash or Shell is a command line tool that is used in open science to efficiently manipulate files and directories.

The name bash is an acronym of "Bourne-again SHell" which is a pun on Stephen Bourne, author of the Bourne shell. Bash is a superset of the earlier shell, and generally compatible with Bourne shell programs.
 

Bash Basics Questions
Time left 00:00
25 Questions

1. What? man uniq

2. How? execute command number 86 in the command history

3. How? move all files from dir to working directory

4. What? echo ~foo

5. What? cmd 2> /dev/null

6. How? display the manual for the uniq command

7. How? install emacs (on a Debian system)

8. What? ls -l $(which mv)

9. How? print file and number lines

10. What? sort file1 file2

11. What? du -s dir/* | sort -nr | head

12. How? list the contents of your home directory and the /usr directory

13. How? uninstall emacs (from a Debian system)

14. What? apt show emacs

15. What? if [[ -f path/to/this ]] || !([[ -e path/to/that ]]) then echo bingo fi

16. What? tr a-z A-Z < file

17. What? touch file

18. In Bash, what does grep stand for?

19. How? write dir's listing to file1 and file2 and also print it

20. What? cp file1 file2

21. What? rm sym1 sym2

22. How? write both stdout and stderr of cmd to foo

23. What? comm -13 file1 file2

24. 'how? search the man pages for ''partition'''

25. How? remove the alias foo