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] Give up root priveleges

2. What does sudo du / -hd1 do ?

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

4. [C] To find kernel version

5. [C] Add My name is Andy" to file.txt without displaying it on the screen"

6. [C] Compress a folder named Exercise Files" using zip and name the archive exfiles.zip"

7. [C] To treat Exercise Files as one argument ? i.e tell the shell space is not a break in a command or escape it.

8. [C] To go to home directory

9. [C] To find how much RAM system have

10. [C] Vim: To save a new text file and name it as new.txt

11. [C] Redirect standard error to a file

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

13. [C] To move back up one directory (to parent directory of current directory)

14. What does the a" option does in tar caf myfile.tar.gz ? file(s)tobecompressed"

15. 6 (4+2+0)

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

17. [C] Move all files of directory1 to directory2

18. Resulting permissions of u+rwx, g=rx, o=rx

19. [C] Vim: 1) Open existing file 2) Save changes to an existing file and quit

20. What does grep command do?

21. [C] To upgrade packages with apt

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

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

24. Vim command to quit without saving

25. all