DCOM 142 LINUX FINAL STUDY ,LINUX ESS. CH 12,
LINUX FINAL, LINUX, 211 FINAL
True or false: The /etc/group file supports linking each user to a maximum of one group.
- Answers -false
Which methods or commands provide access to superuser privileges for authorized
users? (Select all that apply.) - Answers -The su command
Logging into the root account
The sudo command
Which of the following files defines Linux groups? - Answers -/etc/group
What types of information does the id command provide? (Select all that apply.) -
Answers -Your UID number
Your current group
All your group memberships
Your username
True or false: The who command reveals the remote computer from which users have
logged in, when they've logged in remotely. - Answers -true
True or false: The lowest UID number used for user accounts on Linux systems is
typically 500 or 1000 (depending upon the distribution). - Answers -true
Distributions may not allow the root account to be directly logged into and instead
demand the use of the _____ command to obtain superuser privileges and maintain a
nonrepudiation environment. - Answers -sudo
True or false: A user account's information is linked between the /etc/passwd and
/etc/shadow files via the account's UID. - Answers -false
You can type the _____ command, with no arguments, to learn your current username
and nothing more? - Answers -whoami
Which of the following pieces of information on user accounts is not normally stored in
the /etc/passwd file on modern Linux distributions? - Answers -the account's password
Which of the following two office suites are most closely related to one another? -
Answers -LibreOffice is derived from OpenOffice.org
,The programming language that provides a direct one-to-one correspondence between
human-understandable words and machine-understandable numbers is ________
language - Answers -assembly
True or false: All Linux Web browsers are GUI programs - Answers -False
True or false: KDE is built atop the Qt widget set. - Answers -True
Which of the following are risks you take when you browse the Web as an ordinary user
on a properly-configured Linux system? (Select all that apply.) - Answers -Most Web
sites are unencrypted, so data transferred from the site and your computer, or vice-
versa, can be intercepted
Some Web sites deliver mini-programs that run on your computer, and if such a site
delivers a malicious program, it could do just about anything, including steal your
personal data files
An attempt to acquire sensitive data directly from victims by posing as a trusted Web
site or authority is known as ____. - Answers -phishing
Which of the following programs are Linux file managers? (Select all that apply.) -
Answers -Thunar, Nautilus, Konqueror
hich of the following programming languages is most often implemented as a compiled
language? - Answers -only C++ is commonly implemented as a compiled language
A _______ is a GUI program in which text-mode programs (including shells) run. -
Answers -terminal
Postfix is a server that implements the ______ protocol. (Provide the protocol's
acronym.) - Answers -SMTP
You can type Xorg ________, as root, to have X create a default configuration file that
you can then modify. - Answers --configure
The /proc/______ pseudo-file holds data on your CPU, such as its model name and
clock speed. - Answers -cpuinfo
Where do most drivers exist on a Linux system? - Answers -the Linux kernel,
Which of the following is an inappropriate choice for a filesystem to hold the majority of
a Linux installation? - Answers -The Hierarchical File System (HFS) was used by Mac
OS prior to Mac OS X. It doesn't support features required by Linux in its main
filesystem
,True or false: Partitioning a disk can enable you to install multiple OSes on one
computer. - Answers -True
The _____ library provides drivers to control scanners. (Provide the acronym for the
library's name. - Answers -SANE
The _____ filesystem is very old but is supported by almost every OS, making it a good
choice for interoperability. - Answers -FAT
True or false: You can use a recordable optical disc to transfer data from a Linux
computer to a Windows computer. - Answers -True
True or false: You can configure your power supply by accessing the /dev/power device
file. - Answers -False
To refer to the file afile.txt in the directory one level above the current one, you would
type ___afile.txt - Answers -../
True or false: The Secure Shell program is a command interpreter that keeps no history
of its actions for others to discover, hence its name. - Answers -False
To obtain a color-coded file listing, if your distribution doesn't produce one by default,
you would type ls _____. - Answers ---color
What symbol do you place after a command to run the program in the background? -
Answers -An ampersand (&), placed after a command typed in Bash, causes the
command to run in the background,
A symbol found in the root shell prompt by default is __. - Answers -#
Which of the following is not a Linux command shell program? - Answers -the login
program handles text-mode logins, but it isn't a shell program,
True or false: To run a GUI program in Linux, you must launch it from a desktop
environment's menus. - Answers -False
To display the last few lines of a text file, you would type _____ afile.txt. - Answers -tail
True or false: With most distributions, the contents of optical discs, USB flash drives,
and other removable media appear in subdirectories of /media - Answers -True
You type touch afile.txt in a directory that contains no files. What will be the effect? -
Answers -The touch command updates a file's time stamps or creates a new empty file
if one doesn't already exist. Since the latter case is described by the question, a new file
will be created,
, You want to create a link from your home directory on your hard disk to a directory on a
CD-ROM drive. Which of the following types of links might you use? - Answers -
Symbolic links can point across filesystems, so creating a symbolic link from one
filesystem (in which your home directory resides) to another (on the CD-ROM) isn't a
problem
The term _________refers to the use of wildcards in filename specifications. - Answers
-globbing
True or false: If you want to create a link to a directory, you must use a hard link. -
Answers -False
True or false: Typing ls *.* at a Bash prompt is guaranteed to show you all the files in
the current directory. - Answers -False
The character __ identifies a symbolic link in the 10-character symbolic permission
string that's associated with a file. - Answers -l
You want to copy the contents of the ~/important directory, including all its
subdirectories, to /media/usb. What command can you type to accomplish this goal? -
Answers -To copy an entire directory tree, you must use a recursive copy parameter,
such as --recursive, -R, or -r. (An archive copy, as in --archive or -a, will also work.)
You want to create a directory called ~/Documents/papers, but you're not sure that the
~/Documents directory exists. What command can you type to create the desired
directory and its parent directory if it doesn't already exist? - Answers -The -p option to
mkdir creates parent directories if they don't already exist
The files afile.txt and AFile.TXT can both exist on a Linux filesystem because these
filesystems are ____________. - Answers -case-sensitive
You want to copy a set of files but be prompted before cp overwrites any existing files.
You would use the ___ option to cp to accomplish this goal. - Answers ---interactive or -
i
Which option to zip can you use to encode symbolic links as such rather than including
the linked-to file? - Answers -The -i option does as the question specifies
True or false: The gzip program generally produces more compact compressed files
than does the bzip2 program. - Answers -False
true or false: You can use grep to search for strings in binary files. - Answers -True
You can use the ____ command to count the characters, words, and lines in a text file. -
Answers -wc
LINUX FINAL, LINUX, 211 FINAL
True or false: The /etc/group file supports linking each user to a maximum of one group.
- Answers -false
Which methods or commands provide access to superuser privileges for authorized
users? (Select all that apply.) - Answers -The su command
Logging into the root account
The sudo command
Which of the following files defines Linux groups? - Answers -/etc/group
What types of information does the id command provide? (Select all that apply.) -
Answers -Your UID number
Your current group
All your group memberships
Your username
True or false: The who command reveals the remote computer from which users have
logged in, when they've logged in remotely. - Answers -true
True or false: The lowest UID number used for user accounts on Linux systems is
typically 500 or 1000 (depending upon the distribution). - Answers -true
Distributions may not allow the root account to be directly logged into and instead
demand the use of the _____ command to obtain superuser privileges and maintain a
nonrepudiation environment. - Answers -sudo
True or false: A user account's information is linked between the /etc/passwd and
/etc/shadow files via the account's UID. - Answers -false
You can type the _____ command, with no arguments, to learn your current username
and nothing more? - Answers -whoami
Which of the following pieces of information on user accounts is not normally stored in
the /etc/passwd file on modern Linux distributions? - Answers -the account's password
Which of the following two office suites are most closely related to one another? -
Answers -LibreOffice is derived from OpenOffice.org
,The programming language that provides a direct one-to-one correspondence between
human-understandable words and machine-understandable numbers is ________
language - Answers -assembly
True or false: All Linux Web browsers are GUI programs - Answers -False
True or false: KDE is built atop the Qt widget set. - Answers -True
Which of the following are risks you take when you browse the Web as an ordinary user
on a properly-configured Linux system? (Select all that apply.) - Answers -Most Web
sites are unencrypted, so data transferred from the site and your computer, or vice-
versa, can be intercepted
Some Web sites deliver mini-programs that run on your computer, and if such a site
delivers a malicious program, it could do just about anything, including steal your
personal data files
An attempt to acquire sensitive data directly from victims by posing as a trusted Web
site or authority is known as ____. - Answers -phishing
Which of the following programs are Linux file managers? (Select all that apply.) -
Answers -Thunar, Nautilus, Konqueror
hich of the following programming languages is most often implemented as a compiled
language? - Answers -only C++ is commonly implemented as a compiled language
A _______ is a GUI program in which text-mode programs (including shells) run. -
Answers -terminal
Postfix is a server that implements the ______ protocol. (Provide the protocol's
acronym.) - Answers -SMTP
You can type Xorg ________, as root, to have X create a default configuration file that
you can then modify. - Answers --configure
The /proc/______ pseudo-file holds data on your CPU, such as its model name and
clock speed. - Answers -cpuinfo
Where do most drivers exist on a Linux system? - Answers -the Linux kernel,
Which of the following is an inappropriate choice for a filesystem to hold the majority of
a Linux installation? - Answers -The Hierarchical File System (HFS) was used by Mac
OS prior to Mac OS X. It doesn't support features required by Linux in its main
filesystem
,True or false: Partitioning a disk can enable you to install multiple OSes on one
computer. - Answers -True
The _____ library provides drivers to control scanners. (Provide the acronym for the
library's name. - Answers -SANE
The _____ filesystem is very old but is supported by almost every OS, making it a good
choice for interoperability. - Answers -FAT
True or false: You can use a recordable optical disc to transfer data from a Linux
computer to a Windows computer. - Answers -True
True or false: You can configure your power supply by accessing the /dev/power device
file. - Answers -False
To refer to the file afile.txt in the directory one level above the current one, you would
type ___afile.txt - Answers -../
True or false: The Secure Shell program is a command interpreter that keeps no history
of its actions for others to discover, hence its name. - Answers -False
To obtain a color-coded file listing, if your distribution doesn't produce one by default,
you would type ls _____. - Answers ---color
What symbol do you place after a command to run the program in the background? -
Answers -An ampersand (&), placed after a command typed in Bash, causes the
command to run in the background,
A symbol found in the root shell prompt by default is __. - Answers -#
Which of the following is not a Linux command shell program? - Answers -the login
program handles text-mode logins, but it isn't a shell program,
True or false: To run a GUI program in Linux, you must launch it from a desktop
environment's menus. - Answers -False
To display the last few lines of a text file, you would type _____ afile.txt. - Answers -tail
True or false: With most distributions, the contents of optical discs, USB flash drives,
and other removable media appear in subdirectories of /media - Answers -True
You type touch afile.txt in a directory that contains no files. What will be the effect? -
Answers -The touch command updates a file's time stamps or creates a new empty file
if one doesn't already exist. Since the latter case is described by the question, a new file
will be created,
, You want to create a link from your home directory on your hard disk to a directory on a
CD-ROM drive. Which of the following types of links might you use? - Answers -
Symbolic links can point across filesystems, so creating a symbolic link from one
filesystem (in which your home directory resides) to another (on the CD-ROM) isn't a
problem
The term _________refers to the use of wildcards in filename specifications. - Answers
-globbing
True or false: If you want to create a link to a directory, you must use a hard link. -
Answers -False
True or false: Typing ls *.* at a Bash prompt is guaranteed to show you all the files in
the current directory. - Answers -False
The character __ identifies a symbolic link in the 10-character symbolic permission
string that's associated with a file. - Answers -l
You want to copy the contents of the ~/important directory, including all its
subdirectories, to /media/usb. What command can you type to accomplish this goal? -
Answers -To copy an entire directory tree, you must use a recursive copy parameter,
such as --recursive, -R, or -r. (An archive copy, as in --archive or -a, will also work.)
You want to create a directory called ~/Documents/papers, but you're not sure that the
~/Documents directory exists. What command can you type to create the desired
directory and its parent directory if it doesn't already exist? - Answers -The -p option to
mkdir creates parent directories if they don't already exist
The files afile.txt and AFile.TXT can both exist on a Linux filesystem because these
filesystems are ____________. - Answers -case-sensitive
You want to copy a set of files but be prompted before cp overwrites any existing files.
You would use the ___ option to cp to accomplish this goal. - Answers ---interactive or -
i
Which option to zip can you use to encode symbolic links as such rather than including
the linked-to file? - Answers -The -i option does as the question specifies
True or false: The gzip program generally produces more compact compressed files
than does the bzip2 program. - Answers -False
true or false: You can use grep to search for strings in binary files. - Answers -True
You can use the ____ command to count the characters, words, and lines in a text file. -
Answers -wc