Home > Linux > Quizzes > Command Line Basics
Command Line Basics
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 29% Most missed: “[C] Vim:”
Command Line Basics
Time left 00:00
25 Questions

1. [C] To remove an empty directory only

2. Vim command to quit without saving

3. Terminal Shortcut - Delete from cursor to beginning of line

4. [C] Show hardware information of the computer and pipe to less

5. [C] To switch between two previous directories

6. [C] Redirect standard error to a file

7. If current directory is ../departments$ What folders does this command create? - mkdir -p departments/legal/contracts

8. [C] To list files of the subfolders in a directory

9. [C] To locate where ls command is in the file structure

10. Man page shortcut - move forward & backward one windows

11. What does = operator do in the chmod command ?

12. [C] Give up root priveleges

13. [C] To go to home directory

14. [C] To tell absolute path of current working directory

15. [C] list the contents of current directory and print it to filelist.txt

16. What would cat poems.txt | cat -n do?

17. [C] Extract myfiles.tar.bz2 to folder named unpack""

18. [C] To find what distro of linux that is running

19. [C] Append standard output to file.txt

20. filelist.txt contains a list. What happens when you excecute >filelist.xt command?

21. Terminal Shortcut - Go to end of line

22. 6 (4+2+0)

23. all

24. [C] Find a file or directory that has letter d" in the name in the current directory"

25. [C] To install a package