Linux Ch.3 Practice Quiz
/media
1. Contains the mount point for removable media.
True
1. The Linux file system is similar to Windows.
c. Shareable
1. Which type of file can be stored on one machine and used by multiple users on other machines? a. Static c. Shareable b. Variable d. Unshareable
d. -a
10. Which ls command option lists all files including hidden files? a. -F c. -f b. -A d. -a
b. period(.)
11. Hidden files have names that always start with a(n) ____. a. underscore (_) c. slash (/) b. period(.) d. h
d. The eighth column
12. Which output column of the ls command displays the filename? a. The first column c. The seventh column b. The second column d. The eighth column
a. man ls
13. Which command illustrates how to obtain helpful documentation for the ls command? a. man ls c. doc ls b. help ls d. info ls
d. Press N
14. Which method of navigating man pages will repeat the previous search in the reverse direction? a. Press b or backspace c. Press r b. Press \ (backward slash) d. Press N
c. Question mark (?)
15. Which wildcard character is used to represent only one character? a. Asterisk (*) c. Question mark (?) b. Exclamation point (!) d. Tilde (~)
c. Use the touch command.
16. What is the simplest way to create a file in Linux? a. Use the open command. c. Use the touch command. b. Use the create command. d. Use the new command.
b. rmdir
17. Which command is used to remove empty directories? a. rm c. empty b. rmdir d. del
b. rm
18. Before removing a directory containing files, you must run the ____ command to delete the files. a. del c. wipe b. rm d. clr
b. inode
19. A(n) ____ is a data structure that stores all information (such as file permissions, ownership, and file type) about a file except the actual data and filename. a. directory c. hard link b. inode d. symbolic link
/lib
2. Contains shared libraries that are loaded when a program starts.
a. static
2. Files in the /boot directory are considered to be ____ files. a. static c. shareable b. variable d. unshareable
True
2. The command-line prompt varies depending on the shell
d. symbolic link
20. The benefit of creating a(n) ____ is that you can link files that are on separate partitions or even different computers. a. directory c. hard link b. inode d. symbolic link
b. #
21. If you use the su command without an argument, it defaults to the root user, which changes the prompt to a ____ symbol. a. ~ c. $ b. # d. %
/dev
3. Contains device files such as the CD/DVD-ROM drive.
False
3. The * wildcard is used to represent zero or more characters.
/boot
4. Contains the Linux kernel and static files needed to boot the computer.
False
4. When deleting files in Linux, a confirmation message is displayed as a precaution.
a. ~ (tilde)
4. Which symbol represents the user's home directory? a. ~ (tilde) c. $ (dollar sign) b. / (slash) d. ! (exclamation point)
/usr
5. Contains sharable, read-only applications and files
d. two dots (..)
5. To navigate to a directory above your current directory with the relative method, you use ____. a. a forward slash (/) c. one dot (.) b. a back slash (\) d. two dots (..)
False
5. When you move a file to a new location, it remains in the original directory.
/etc
6. Contains static configuration files, which are also unshareable files meaning they're local to the machine
/bin
7. This directory should not contain subdirectories.
c. Tab
7. To enable the Bash shell command completion feature, press the ____ key. a. B c. Tab b. C d. Shift
/opt
8. Contains static sharable add-on software package.
a. ls
8. Which command is used to list file and subdirectories in the Linux directory structure? a. ls c. fs b. list d. lfs
/home
9. An optional directory.
b. command -options argument
9. What is the command syntax that almost all Linux commands follow? a. command -options -argument b. command -options argument c. command -arguments -option d. command -arguments option