DCOM 142 LINUX FINAL QUESTIONS ,DCOM 211
FINAL
Which options to find can you use to locate files owned by a particular user - Answers -
-user, -uid
A caret (^) represents the start of a line in regular expressions. (T or F) - Answers -T
The gzip program generally produces more compact compressed files than does the
bzip2 program. (T or F) - Answers -F
Where does the kernel store its ring buffer logs? - Answers -In memory
A program allocates more and more memory but doesn't use the memory it allocates (2
words). - Answers -Memory leak
Both RPM and Debian packages can specify that they require other packages. (T or F) -
Answers -T
The file stuff.txt does not exist. You type nano stuff.txt and press Enter. What happens
next? - Answers -The nano text editor starts, and displays the message, New File, in
the status bar.
A text encoding method that can use single- or multiple-byte encodings to store text. -
Answers -Unicode
ASCII is limited to 72 characters (T or F) - Answers -F
What Bash scripting keyword terminates a case statement? - Answers -esac
The string _______, located at the start of the file, identifies a script as a Bash script. -
Answers -!#/bin/bash
You can record the output of a command in a variable by enclosing the command in
backticks. (T or F) - Answers -F
What types of information does the id command provide? - Answers -Your UID,
username, current group, all group member
You can type _____ command, with no arguments, to learn your current username and
nothing more? - Answers -whoami
,The lowest UID number used for user accounts on Linux systems is typically 500 or
1000. (T or F) - Answers -T
Which of the following makes a good password?
Your username
'password'
Telephone #
None of these - Answers -None
You want to delete the oldproj group, so you type _____ oldproj. - Answers -groupdel
useradd copies a set of user config files from /etc/skel when creating a new user
account. (T or F) - Answers -T
Mary finds that she can delete George's files in /tmp. What might this imply? - Answers
-The sticky bit is missing from /tmp; it should be set.
The command _____ :users somefile.txt changes the group affiliation of somefile.txt to
users. - Answers -chown
Setting the SUID bit on a program file that's owned by root causes it to execute with
root. (T or F) - Answers -T
What file would contain the following: nameserver 8.8.8.8 - Answers -/etc/resolv.conf
A computer's full hostname is franklin.example.org. What is the machine name portion?
- Answers -franklin
WEP provides the highest available level of Wi-Fi security. (T or F) - Answers -F
Which command would create a zip file containing the files, holiday.tif and desc.txt, and
compress it as much as possible? - Answers -zip -9 trip.zip holiday.tif desc.txt
Which regular expression string matches any sequence of characters of any length? -
Answers -.*
Which of the following redirection operators appends a program's standard output to an
existing file, without overwriting that file's original contents? - Answers ->>
The ________ qualifier to tar causes it to use xz compression when creating an archive.
- Answers ---xz
You can use the ____ command to count the characters, words, and lines in a text file. -
Answers -wc
, Linux supports two types of text-mode output to the screen, which you can send to
separate files or display devices. (T or F) - Answers -T
You use the ___ character to separate two strings, either of which should match, in an
extended regular expression. - Answers -|
Which options to find can you use to locate files owned by a particular user? - Answers
--user, -uid
The ps program enables you to view the process table. (T or F) - Answers -T
An Internet site that hosts software that you can install with yum, APT, or a similar tool
is known as a ___________ - Answers -repository
The first process to be run by the Linux kernel is normally called ________ - Answers -
init
Which of the following programs produces a summary of the memory status of your
computer, including the total memory available, the amount used, and the amount that's
unused? - Answers -free
Which of the following tools can you use to identify running processes? - Answers -ps,
top
Pressing the M key in top causes the display to change to sort processes by memory
use. (T or F) - Answers -T
Which of the following commands provides a low-level way to install software on a
Debian system? - Answers -dpkg
The /var/log/messages file always holds general-purpose log entries. (T or F) -
Answers -F
To save a text file in vi, you should press Ctrl+S. (T or F) - Answers -F
You're working in vi and, after having saved your current file, you want to load a new
one. You can do so by typing ____ newfile.txt from command mode. - Answers -:e
A version of the vi text editor called "vi improved," or vim is used for most Linux
distributions. (T or F) - Answers -T
What keystroke deletes a line of text when using nano? - Answers -Ctrl+K
In pico or nano, you can paste text that you've cut or copied earlier by pressing
Ctrl+____. - Answers -U
FINAL
Which options to find can you use to locate files owned by a particular user - Answers -
-user, -uid
A caret (^) represents the start of a line in regular expressions. (T or F) - Answers -T
The gzip program generally produces more compact compressed files than does the
bzip2 program. (T or F) - Answers -F
Where does the kernel store its ring buffer logs? - Answers -In memory
A program allocates more and more memory but doesn't use the memory it allocates (2
words). - Answers -Memory leak
Both RPM and Debian packages can specify that they require other packages. (T or F) -
Answers -T
The file stuff.txt does not exist. You type nano stuff.txt and press Enter. What happens
next? - Answers -The nano text editor starts, and displays the message, New File, in
the status bar.
A text encoding method that can use single- or multiple-byte encodings to store text. -
Answers -Unicode
ASCII is limited to 72 characters (T or F) - Answers -F
What Bash scripting keyword terminates a case statement? - Answers -esac
The string _______, located at the start of the file, identifies a script as a Bash script. -
Answers -!#/bin/bash
You can record the output of a command in a variable by enclosing the command in
backticks. (T or F) - Answers -F
What types of information does the id command provide? - Answers -Your UID,
username, current group, all group member
You can type _____ command, with no arguments, to learn your current username and
nothing more? - Answers -whoami
,The lowest UID number used for user accounts on Linux systems is typically 500 or
1000. (T or F) - Answers -T
Which of the following makes a good password?
Your username
'password'
Telephone #
None of these - Answers -None
You want to delete the oldproj group, so you type _____ oldproj. - Answers -groupdel
useradd copies a set of user config files from /etc/skel when creating a new user
account. (T or F) - Answers -T
Mary finds that she can delete George's files in /tmp. What might this imply? - Answers
-The sticky bit is missing from /tmp; it should be set.
The command _____ :users somefile.txt changes the group affiliation of somefile.txt to
users. - Answers -chown
Setting the SUID bit on a program file that's owned by root causes it to execute with
root. (T or F) - Answers -T
What file would contain the following: nameserver 8.8.8.8 - Answers -/etc/resolv.conf
A computer's full hostname is franklin.example.org. What is the machine name portion?
- Answers -franklin
WEP provides the highest available level of Wi-Fi security. (T or F) - Answers -F
Which command would create a zip file containing the files, holiday.tif and desc.txt, and
compress it as much as possible? - Answers -zip -9 trip.zip holiday.tif desc.txt
Which regular expression string matches any sequence of characters of any length? -
Answers -.*
Which of the following redirection operators appends a program's standard output to an
existing file, without overwriting that file's original contents? - Answers ->>
The ________ qualifier to tar causes it to use xz compression when creating an archive.
- Answers ---xz
You can use the ____ command to count the characters, words, and lines in a text file. -
Answers -wc
, Linux supports two types of text-mode output to the screen, which you can send to
separate files or display devices. (T or F) - Answers -T
You use the ___ character to separate two strings, either of which should match, in an
extended regular expression. - Answers -|
Which options to find can you use to locate files owned by a particular user? - Answers
--user, -uid
The ps program enables you to view the process table. (T or F) - Answers -T
An Internet site that hosts software that you can install with yum, APT, or a similar tool
is known as a ___________ - Answers -repository
The first process to be run by the Linux kernel is normally called ________ - Answers -
init
Which of the following programs produces a summary of the memory status of your
computer, including the total memory available, the amount used, and the amount that's
unused? - Answers -free
Which of the following tools can you use to identify running processes? - Answers -ps,
top
Pressing the M key in top causes the display to change to sort processes by memory
use. (T or F) - Answers -T
Which of the following commands provides a low-level way to install software on a
Debian system? - Answers -dpkg
The /var/log/messages file always holds general-purpose log entries. (T or F) -
Answers -F
To save a text file in vi, you should press Ctrl+S. (T or F) - Answers -F
You're working in vi and, after having saved your current file, you want to load a new
one. You can do so by typing ____ newfile.txt from command mode. - Answers -:e
A version of the vi text editor called "vi improved," or vim is used for most Linux
distributions. (T or F) - Answers -T
What keystroke deletes a line of text when using nano? - Answers -Ctrl+K
In pico or nano, you can paste text that you've cut or copied earlier by pressing
Ctrl+____. - Answers -U