Exam 1 Linux
Exam 1 Linux
Exam 1 Linux
2. Unix is
a. An operating system
b. One type of hardware
c. A text editor
d. A Linux distribution
6. Most of the tools that are part of Linux systems come from:
a. Linux Foundation
b. Red Hat and Debian
c. The Open Source Initiative
d. The GNU Project
9. A license for which you cannot get access to the source code is called:
a. No code
b. Open Source
c. Closed code
d. Altered code
12. Open source licenses are different, but in general they agree that:
a. You must not know how to modify the software as you want it to be modified
b. You do not have permission to sell the software
c. You must have access to the source code of the software
d. You must redistribute your changes
13. Applications send requests to the kernel, and in return receive resources, such as memory,
CPU and disk. True or false?
a. False
b. True
14. The most important consideration when choosing an operating system is:
a. How much performance is needed
b. The operating system licensing model
c. Whether or not it is cloud-compliant
d. The operating system mascot
e. What the computer will do
18. If a software release is at a stage of many new features that have not been rigorously tested
it is usually called beta software. True or false?
a. True
b. False
25. If you want to create a blog, which software would be most useful?
a. Dovecot
b. Postfix
c. MySQL
d. Samba
e. WordPress
26. Which of the following pieces of software is not focused on file sharing? (select three)
a. NFS
b. Netatalk
c. Samba
d. X-Window
27. If you want to create and print an invoice, which software can you use?
a. GNOME
b. LibreOffice
c. Compiz
d. Evolution
e. Firefox
35. What application would you use to edit and rebuild sound files to create a podcast?
a. Audiolicious
b. Bash
c. Thunderbird
d. Audacity
e. GIMP
37. Running which applications in graphical mode can reach the shell?
a. gbash
b. guiterm
c. xconsole
d. terminal
38. Virtualization means:
a. A single host can be divided into several hosts
b. A user can connect to a server over the network and use the virtual console
c. Many users can share one hard disk drive
d. A machine can change the memory on the disk
e. Two users get different memory spaces on the same machine
39. If you want to write a report that you would have to print, you would probably use:
a. Chrome
b. LibreOffice
c. Firefox
d. Adobe Flash
e. A wiki
40. If you want to store usernames and passwords for different websites in a secure way, you
can use:
a. A LibreOffice document
b. A text file in your home directory
c. KeePassX
d. A sticky note on your monitor
e. Firefox
41. You can configure your computer to check for updates automatically. True or false?
a. True
b. False
42. Which of the following is a tool that helps you anonymize your Internet browsing?
a. CookieCleaner
b. iptables
c. AnonFirefox
d. Web proxy
e. The onion router
43. Social media "like" buttons can track your activity across the Internet. True or false?
a. False
b. True
44. What can be done to prevent remote people from running programs on your computer?
a. Block all cookies
b. Turn on a firewall
c. Block third party cookies
d. Do not use wireless networks - wired only
45. What are the benefits of increasing the level of privacy you have in your web browser?
a. Images do not load correctly
b. You can obtain viruses
c. Websites may load slower
d. Sites may not function properly
46. Which environment variables contain a list of directories in which to look for the commands
you want to execute?
a. PATH
b. PS1
c. PS2
d. EXEC
47. Selects the command that can report the location of a command:
a. which
b. what
c. where
48. A pair of single quotes (') will prevent the shell from interpreting any metacharacters. True or
false?
a. False
b. True
49. A pair of double quotes (") will prevent the shell from interpreting any metacharacters. True
or false?
a. True
b. False
50. The use of a pair of inverted quotes (`) will prevent the shell from executing text between
inverted quotes as a command and will replace the new output with the original command.
True or false?
a. False
b. True
51. The semicolon ";" can be used to separate several commands so that they are executed in
order. True or false?
a. False
b. True
53. The double ampersand character (&&) is used to separate commands so that they are
executed conditionally, where if the command to the left of the ampersand symbols fails,
then the command to the right of the ampersand symbols will be executed. True or false?
a. True
b. False
54. In order to see the output messages on the screen, we use the command _______:
a. echo
b. display
c. type
d. print
55. The command _______ will print a list of commands you have previously executed.
a. history
b. eval
c. list
d. exec
56. What is the standard option for providing a command line program to view your
documentation?
a. --doc
b. --info
c. -h
d. --help
57. The man-k command is the same as the apropos command.true or false?
a. False
b. True
58. The whatis command is the same as man -w. True or false?
a. False
b. True
59. The directory where you can most likely find additional documentation for the software
packages is:
a. /usr/software/doc
b. /var/share/doc
c. /var/lib/doc
d. /usr/share/doc
60. Which two in-page navigation commands are used by the man command to control
movement within the document?
a. grep and more
b. more and less
c. page and grep
d. page and less
61. In which section of the manual will you find the content dealing with commands normally
executed by a user?
a. 5
b. 1
c. 3
d. 2
62. The instruction describing the difference between a man page and info page command is:
a. The man page is a long and detailed reference; the info page is a very concise
reference.
b. The info page command is like a guide; the man page is a more concise reference.
c. The man page command is like a guide; the info page is a more concise reference.
d. There is very little difference between them.
63. If you are reading the synopsis of a command from the man page, then the items in square
brackets are:
a. Arguments required
b. Required options
c. Optional
d. Comments
65. To start the man page search, the first key to press is:
a. !
b. s
c. f
d. /
66. Which option for the ls command will show all files, including hidden files?
a. -H
b. -w
c. -L
d. -a
71. The double dot (...) can be used with the cd command to represent:
a. Any two individual characters
b. The user's home directory.
c. The directory above the current working directory
d. Nothing; it has no special significance
72. What directory will the cd command alone take you to?
a. To none; not a valid command
b. The system root directory
c. To your home directory
d. To the directory above the current working directory
73. Which command will allow you to change the current working directory?
a. chdir
b. ls
c. cd
d. list
76. In general, for which of the following would you want to use lossless compression?
a. An mp3 audio file
b. A log file
c. An encrypted e-mail
d. A movie
e. A JPEG image
78. What command would you use to package the Documents directory and compress it with
bzip2?
a. tar -cf Documents documents.tbz
b. tar -fzc Documents documents.tbz
c. tar -cjf documents.tbz Documents
d. tar -cjf Documents
e. tar -czf documents.tbz Documents
79. Which option would you pass to tar in order to create a new packed file?
a. -t
b. -c
c. -n
d. -j
e. -x
80. Which command will show what is inside the compressed tar archive with a name of
foo.tar.gz?
a. tar -xf foo.tar.gz
b. tar -tf foo.tar.gz
c. tar -tjf foo.tar.gz
d. tar -tzf foo.tar.gz
e. tar -lf foo.tar.gz
81. In the command tar -cvjf foo.tbz a b c what do the letters a, b, c refer to?
a. Additional options passed to the tar
b. a is the directory that precedes the files; b and c are the files inside the directory
c. Matching operators; anything beginning with a, b, or c is added.
d. Nothing; -cvjf only expects one parameter
e. The filenames to be added to the packed file
82. You packed your user directories in an archive called backup.tar.gz. Below you can view the
packed file and see that the file names follow this convention:
home/username/somefile
How are you going to extract only the files for the user named fred?
a. tar -xzf backup.tar.gz home/fred/
b. tar -tzf /home/fred < backup.tar.gz
c. tar -xjf backup.tar.gz home/fred/
d. tar -xzf backup.tar.gz fred
e. tar -tjf backup.tar.gz /home/fred
83. Which of the following commands will create a zip file with the contents of the Documents
directory?
a. zip -f mydocs.zip Documents
b. zip -r mydocs.zip Documents
c. zip mydocs.zip Documents
d. zip -cf mydocs.zip Documents
e. zip -c mydocs.zip Documents
84. You have an archive named documents.zip, how can you see what is inside without
extracting the files?
a. showzip documents.zip
b. zip -l documents.zip
c. unzip -l documents.zip
d. zip -lf documents.zip
e. unzip --list documents.zip
86. A successful command will print the output to STDOUT. True or false?
a. True
b. False
89. Which of the following commands will append your output to output.file?
a. echo Testing > output.file
b. echo Testing >> output.file
c. output.file < echo Testing
d. echo Testing -> output.file
90. Which option of the head command will display only the first five lines of a file?
a. -n 5
b. No option is required; the head displays only the five lines by default.
c. -l 5
d. -n
92. The grep command can be used with glob characters. True or false?
a. True
b. False
93. Which of the following commands will display only lines beginning with start?
a. grep $start file.txt
b. grep *start file.txt
c. grep ^start file.txt
d. grep \start file.txt
94. Which of the following commands will display only lines beginning with test?
a. grep $test* file.txt
b. grep *test file.txt
c. grep ^test file.txt
d. grep &test file.txt