Documente Academic
Documente Profesional
Documente Cultură
1. Question ID 73
In general, for which of the following would you want to use lossless
compression?
A log file
A movie
A JPEG image
An mp3 audio file
An encrypted email
3. Question ID 76
Lossy compression:
(choose three)
(choose two)
myfile.tar is removed
myfile.tar.gz holds a compressed version of myfile.tar
An error; you forgot to specify the file with –f
myfile.tar is unarchived into the current directory
An error; you forgot to pass the name of the output file
5. Question ID 78
gunzip –t tags
file tags
gzip –l tags
6. Question ID 79
Which command would you use to archive the Documents directory and
compress it with bzip2 compression?
Which flag would you pass to tar in order to have it make a new archive?
–t
-c
–j
-x
–n
8. Question ID 81
Which command will show what is inside the compressed tarball with a name of
foo.tar.gz?
9. Question ID 82
Given the command tar –cvjf homedirs.tbz /home, which of the following are
true?(choose two)
You archived your users’ directories into a file called backup.tar.gz. You then
view the archive and see the filenames follow this convention:
home/username/somefile
How will you extract just the files for the user called fred?
Which of the following commands will create a zipfile with the contents of your
Documents directory?
13. Question ID 86
Given a file called documents.zip, how can you see what’s in it without
extracting the files?
showzip documents.zip
zip –lf documents.zip
zip –l documents.zip
unzip –list documents.zip
unzip –l documents.zip
14. Question ID 87
Given a file called documents.zip, how can you extract just the files under
ProjectX?
You try to compress a file that is already compressed. Which of the following
statements is true?
The file will not be compressed any further than it already was
The compression algorithm needs to be set to the “currently compressed” mode for it to be
compressed further
The file will actually be uncompressed
The file will be deleted
The file changed while you were compressing it
16. Question ID 89
bunzip2
bzip2
gzip
cat
zip
17. Question ID 90
Copy
List
Compress
Create
Extract
18. Question ID 91
In the command tar –czf foo.tar.gz bar, what is the purpose of the f flag?
Tells tar to read from the file that follows the flag
Tells tar to print the name of each file as it is processed
Tells tar to copy only files, and not directories
Specifies extra compression is to be used
Tells tar to write to the file that follows the flag
19. Question ID 92
The _____ command is normally executed daily to update the database of all
files that are on the system.
updatedb
search
locate
find
Linux Essentials Chapter 8 Exam Answer
1. Question ID 93
Log files
STDOUT
STDERR
STDIN
2. Question ID 94
True or False?
True
False
3. Question ID 95
Which of the following commands will direct error messages to the file,
error.log?
(choose one)
Channel 2 is:
STDIN
STDALL
STDOUT
STDERR
6. Question ID 98
Which of the following commands will append its output to output.file?
Which command(s) can be used to sort the lines of list.file alphabetically and
display it on the screen?
(choose two)
Which option of the head command will display only the first five lines of a file?
-l 5
No option needed; head displays only five lines by default.
-n
-n 5
9. Question ID 101
…will display all the lines that begin with the specified Regular Expression.
…is not case sensitive.
…will display all the lines in a file containing the specified Regular Expression.
…will display the line numbers in a file that contain a specified Regular Expression.
10. Question ID 102
True or False?
True
False
11. Question ID 103
Which of the following commands will display only lines that begin with start?
grep *start file.txt
grep $start file.txt
grep start file.txt
grep ^start file.txt
12. Question ID 104
Which of the following commands will display only lines that begin with test?
Which of the following commands will display lines that contain either start or
end?
Question ID 106
Which of the following commands can be used to scroll through a text file?
(choose two)
some
less
cat
more
15. Question ID 107
The find command can search for files based on the size of the file.
True or False?
True
False
Which of the following commands scans the file to determine file locations?
search
locate
where
find
17. Question ID 109
-f
-d
=
-D
18. Question ID 110
Which option for the cut command is used to specify the field?
-D
-f
-d
#
19. Question ID 111
Which option for the wc command will print the number of lines in a file?
-l
-w
-C
-L
20. Question ID 112
Which option for the wc command will print the total number of words in a file?
-l
-L
-C
-w
21. Question ID 113
The command echo “text” > file.txt will create file.txt if it does not already exist.
True or False?
True
False
23. Question ID 115
The command echo “text” > file.txt will not overwrite file.txt if it already exists.
True or False?
True
False
24. Question ID 116
The command echo “text” >> file.txt will not overwrite file.txt if it already exists.
True or False?
True
False
Linux Essentials Midterm Exam Modules 1 – 8 Answer
1. Question ID 42
END
n
N
]
2. Question ID 43
]
n
N
}
3. Question ID 44
When interpreting the SYNOPSIS of a command found on a man page, the “|”
means:
After performing a search, you can use the ____ key to return to a previously
found match:
n
N
D
U
5. Question ID 46
To move a page forward one at a time while viewing a man page, press the
following:
Spacebar
m
a
Enter
6. Question ID 59
Which option can be used with the rm command to prompt before deleting?
I
-i
-P
A
8. Question ID 69
True or False?
True
False
9. Question ID 70
name
rn
mv
cp
10. Question ID 72
(choose two)
You try to compress a file that is already compressed. Which of the following
statements is true?
The file will not be compressed any further than it already was
The file changed while you were compressing it
The file will actually be uncompressed
The compression algorithm needs to be set to the “currently compressed” mode for it to be
compressed further
The file will be deleted
12. Question ID 89
(choose three)
bunzip2
zip
bzip2
cat
gzip
13. Question ID 90
(choose three)
Extract
Copy
Compress
List
Create
14. Question ID 91
In the command tar –czf foo.tar.gz bar, what is the purpose of the f flag?
(choose two)
Which option for the wc command will print the total number of words in a file?
-l
-L
-w
-C
17. Question ID 113
num
ln
nl
sort
18. Question ID 114
The command echo “text” > file.txt will create file.txt if it does not already exist.
True or False?
True
False
19. Question ID 115
The command echo “text” > file.txt will not overwrite file.txt if it already exists.
True or False?
True
False
20. Question ID 116
The command echo “text” >> file.txt will not overwrite file.txt if it already exists.
True or False?
True
False
21. Question ID 262
Apple’s OS X is:
(choose three)
Microsoft Windows:
(choose three)
(choose two)
(choose five)
(choose three)
Attribution-NonCommercial-ShareAlike
Attribution-NonCommercial
NoAttribution-ShareAlike
No Rights Reserved
Attribution
29. Question ID 305
Your company makes a hardware firewall that runs a custom Linux kernel. What
are your obligations under GPLv2?
Participating in open source projects can improve your technical skills, even if it
is not your day job.
True or False?
True
False
31. Question ID 322
What are tradeoffs of increasing the level of privacy you have in your web
browser?
(choose two)
Which of the following is a tool that helps you anonymize your Internet
browsing?
CookieCleaner
Web proxy
The onion router
AnonFirefox
iptables
33. Question ID 324
Social network “like” buttons can track your activity across the Internet.
True or False?
True
False
34. Question ID 325
(choose three)
What can be done to prevent remote people from running programs on your
computer?
(choose two)
Traditional UNIX command options used a single dash, like -a; _______
command options use two dashes like –all.
LINUX
Kernel
GNU
shell
38. Question ID 345
What one character treats the character that follows it as if it was surrounded by
single quotes?
/
%
\
#
40. Question ID 347
True or False?
True
False