16. b) unmask
17. a) Hard, symbolic
18. b) ls –R > f1.txt
19. a) True
20. a) rm –rd /tmp/*
21. c) chmod u-w go-r filename
22. a) True
a) chmod
b) unmask
c) sudo
d) chown
17. There are two types of links in Linux. They are:
a) Hard, symbolic
b) Linux does not use links; links are shortcuts and are used in Windows.
c) Absolute, relative
d) Direct, indirect
18. The following command will send the output of the ls -R command to a file named f1.txt overwriting its existing content.
a) Overwrite f1.txt with ls –R
b) ls –R > f1.txt
c) ls –R | f1.txt
d) ls –R >> f1.txt
19. A file system refers to the “way” the disk is formatted and how data is stored on a disk.
a) True
b) False
20. The following command will remove the content of the /tmp folder but the folder itself.
a) rm –rd /tmp/*
b) rm –rf /tmp/?
c) Rm –rf /tmp/content
d) rm –rf /tmp
21. The following command would remove the write permission from the owner and remove the read permission from the group and others.
a) umask u-w go-r filename
b) chmod u-w,go-r filename
c) chmod u-w go-r filename
d) umask u-w,go-r filename
22. The rm command by default does not work with directories; it can only remove files by default.
a) True
b) False
17. a) Hard, symbolic
18. b) ls –R > f1.txt
19. a) True
20. a) rm –rd /tmp/*
21. c) chmod u-w go-r filename
22. a) True