Linux+ Midterm
Unlock all answers in this set
Unlock answersquestion
The overall cost of using a particular operating system is known as?
answer
Total cost of ownership (TCO)
question
The QT toolkit is utilized by which GUI environment?
answer
KDE
question
An archive of files that usually contain scripts that install the software contents to the correct location on the system is referred to as a:
answer
tarball
question
Dennis Ritchie invented what programming language, which was then used to rewrite the UNIX operating system?
answer
C
question
In Linux, the core component of the GUI is known as:
answer
X Windows
question
Proxy servers keep track of the information passed to each client by maintaining what type of table?
answer
Network Address Translation (NAT)
question
The GNU General Public License (GPL) was developed by which organization?
answer
Free Software Foundation (FSF)
question
The Linux kernel was developed and released in 1991 by:
answer
Linus Torvalds
question
The iptables software on Linux is an example of what kind of software?
answer
Firewall
question
What Linux distribution is the most commonly used distribution within organizations today?
answer
Red Hat
question
What computer system was the first to run the UNIX operating system?
answer
DEC PDP-7
question
What piece of software tells the operating system how to use a specific hardware device?
answer
device driver
question
what service provides a method for the efficient transfer of files over the Internet?
answer
FTP
question
What software type is software that is distributed free of charge, but the source code is not available?
answer
Freeware
question
When viewing the version number for a Linux kernel, what number indicates the stability of the kernel?
answer
minor number
question
What stipulates that the source code of any software published under its license must be freely available.
answer
GNU Public License
question
Which of the following is the greatest expense for companies using Linux?
answer
Hiring people to maintain the Linux system
question
Which type of open source license ensures that the source code of a program is freely available while also allowing the original author of the source code some control over the changes made to it?
answer
Artistic
question
A calendar for the current month can be shown on the command line by issuing which command?
answer
cal
question
A hard drive or SSD can be divided into partitions. What is the maximum number of primary partitions that can be used on these devices?
answer
4
question
After a shell is no longer needed, what command can be given to exit the shell?
answer
exit
question
After logging into a terminal, a user will receive an interface known as which option below?
answer
shell
question
In Fedora 20, what terminal is used for graphical login?
answer
tty1
question
Prior to performing an installation of Linux, the hardware components of the target system should be checked against what known compatible list below?
answer
Hardware Compatibility List (HCL)
question
Select the utility below that when run will start and perform a thorough check of RAM for hardware errors:
answer
memtest86
question
Some Linux distributions have the ability to boot an image from install media and run entirely from RAM. What is the name for this kind of image?
answer
live media image
question
The Linux kernel exists as a file named:
answer
vmlinuz
question
The apropos list command produces the same results as which command below?
answer
man -k list
question
Under the root directory in Linux, which directory contains system commands and utilities?
answer
/var
question
What installation media source is the most common source for Linux packages?
answer
DVD
question
What is the minimum number of user accounts that must be created at install time?
answer
2
question
. What is the recommended size for the /home directory?
answer
200 MB
question
What metacharacter can be used to issue tw term-31o commands to be run in consecutive order, without piping or redirecting output?
answer
;
question
What metacharacter indicates background command execution?
answer
&
question
What term describes the physical hardware and the underlying operating system upon which a virtual machine runs?
answer
virtual host
question
When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:
answer
Options
question
Which Linux command can be utilized to display your current login name?
answer
whoami
question
At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes
answer
:q!
question
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?
answer
Tab
question
In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?
answer
cd ../..
question
In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?
answer
Ctrl+k
question
. In vi, using command mode, what series of key presses below will cause the line on which the cursor is on to be deleted?
answer
dd
question
In what mode does the vi editor open by default?
answer
command mode
question
Select the command below that can be used to provide a long listing for each file in a directory:
answer
ls -l
question
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.
answer
*
question
The LISP artificial intelligence programming language can be used with which text editor below?
answer
Emacs editor
question
To display a text file in reverse order, what command should be used?
answer
tac
question
To display the contents of a text file called data, what command should be used?
answer
cat data
question
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?
answer
[1-4]
question
What command can be issued to confirm what directory you are in at a command line prompt?
answer
pwd
question
What command can be used to display the last five lines of a text file?
answer
tail -5
question
What command is most effective at identifying different types of files?
answer
stat
question
What metacharacter can be used to refer to the current user's home directory?
answer
~
question
When issuing the ls -F command, what special character indicates a linked file?
answer
@
question
Which character(s) below represent extended regular expression metacharacter(s)?
answer
{}
question
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?
answer
Ctrl+g
question
Which switch below can be added to the ls command to show a list of files and their type?
answer
-F
question
Select the mode below that corresponds to setting r-x:
answer
5
question
What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?
answer
write
question
In a file's mode, a permission that is unavailable is represented by what character?
answer
-
question
In order to create a hard link, what command must be used?
answer
ln
question
I order to quickly create an empty file, what command can be used?
answer
vim file1
question
In order to set all of the special permissions on a certain file or directory, which command below should be used on a file named filename?
answer
chmod 7777 filename
question
The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?
answer
/boot
question
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?
answer
/root
question
The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?
answer
$
question
The section of an inode that stores permissions is referred to as what?
answer
the mode of the file
question
What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?
answer
g+r-w
question
What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?
answer
rm
question
What command can be used to copy files?
answer
cp
question
What does the setfacl -b command do?
answer
It removes all extra ACL assignments on a given file.
question
What option, when added to the rm command, is commonly referred to as the -resume option?
answer
-r
question
What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?
answer
execute
question
What permission grants a user the ability to open, read, and edit the contents of a file?
answer
write
question
What section of a filesystem contains information about the filesystem in general?
answer
superblock
question
When using the chmod command, the mode rwx can be represented by which number?
answer
7
question
In the fdisk interactive mode, what letter can be used to save changes to the partition table and exit?
answer
w
question
What command below can be used to create a new physical volume?
answer
pvcreate
question
A device that transfers data in a character-by-character fashion is referred to as what type of device?
answer
character
question
Data is read from physical hard drives in concentric circles known as which of the following?
answer
tracks
question
Errors on a filesystem are common on most filesystems. What do these errors indicate?
answer
filesystem corruption
question
In the event that you wish to disable a swap partition, what command must be used?
answer
swapoff
question
In what filesystem are most of the operating system files contained?
answer
root
question
Select the command below that shows the size of a directory and its contents in kilobytes:
answer
du
question
Select the command that can be used to check an ext2, ext3, or ext4 filesystem:
answer
mke2fs
question
Select the command that can be used to create partitions that will be stored in an MBR after installation:
answer
fdisk
question
The quotas for certain users can be edited by using which command?
answer
edquota
question
The mkfs command can be issued with what switch in order to specify a filesystem type?
answer
-t
question
To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, what command can be used?
answer
mount -a
question
What character device file represents the second serial port on a system (COM2)?
answer
/dev/ttyS1
question
What command can be used to check different kinds of filesystems on Linux for errors?
answer
fsck
question
What file system below is used by software programs that write to a CD-RW or DVD-RW drive?
answer
udf
question
What hex code is associated with a Linux swap type partition?
answer
82
question
Which command below provides the easiest method for monitoring free space on mounted filesystems?
answer
df
question
Which device file below represents the first primary partition on the second PATA hard disk drive?
answer
/dev/hdb1
question
Which option, when used with the mount command, enables loopback mode so that an iso image can be mounted onto a directory?
answer
--loop
question
A ZFS volume that uses a variable stripe size and requires a minimum of three hard disks to protect against single disk failure is known as:
answer
RAID-Z
question
In Fedora 20, the logging system used to record the messages normally stored within the boot.log, messages, and syslog files has been replaced by a journaling database system called?
answer
journald
question
Select the command that can be used to change the root filesystem to a different directory, such as when in a rescue environment
answer
chroot
question
What RAID level is commonly referred to as disk striping with parity?
answer
RAID5
question
Each SCSI device attached to a system must be assigned an ID number. What is this ID number called?
answer
target ID
question
If a Linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred?
answer
segmentation fault
question
In a SCSI chain the highest priority SCSI device is given what SCSI ID?
answer
7
question
In order to list all configuration parameters that can be modified for a subfilesystem, what command should be issued?
answer
zfs get all
question
In some cases, the installation process fails to place a boot loader on the hard disk properly; this is often caused by hard drives with over what number of cylinders?
answer
1024
question
Most Parallel SCSI controllers are capable of supporting up to how many devices?
answer
15
question
Select the file in the /proc directory that contains statistics on the performance of the processor
answer
loadavg
question
The first software RAID volume on a system will use a multiple disk device file that starts with what number?
answer
127
question
To ensure that Linux has detected the correct amount of RAM in the system after installation, you should view the contents of what file in the proc directory?
answer
/proc/meminfo
question
What SCSI type supports speeds of up to 80 MB/second?
answer
SCSI-3 Ultra2 Wide
question
What command is used to manage a software RAID configuration after installation?
answer
mdadm
question
What file in the /proc directory contains a list of memory address ranges reserved for device use?
answer
ioports
question
What file in the /proc directory contains information about a computer's CPU?
answer
/proc/cpuinfo
question
What file under the proc directory contains information regarding what modules are currently loaded into the Linux kernel?
answer
modules
question
What is the term for a ZFS managed filesystem that is created from ZFS pools?
answer
ZFS volume
question
You are troubleshooting an issue that occurs on a Linux system during the boot process. What file can be viewed on most Linux systems to see processes that started successfully or unsuccessfully specifically during the boot process?
answer
/var/log/boot.log
question
What construct is intended for use in processing a list of objects, such as files, directories, users, printers, and so on?
answer
for
question
What operator below is known as the NOT operator?
answer
!
question
A list of all exported environment and user-defined variables in a shell can be viewed with what command below?
answer
env
question
In order to redirect a file to the standard input of a command, what metacharacter should be used?
answer
<
question
Select the escape sequence that starts a new line when used with echo:
answer
n
question
Select the escape sequence that is used for a form feed:
answer
f
question
Select the metacharacter that can be used to send the standard output of one command to another command as standard input:
answer
|
question
Select the test statement that can be used to determine if A is numerically greater than B
answer
[ A gt B ]
question
The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?
answer
awk
question
The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?
answer
echo $PS1
question
The environment variables that are set by default and their current values can be viewed with what command?
answer
set
question
The standard output and standard error from a terminal screen within the BASH shell can be redirected to a file on the filesystem using what shell metacharacter, followed by the absolute or relative pathname of the file?
answer
>
question
What character combination at the start of a shell script are referred to as a hashpling, and allow for the specification of the shell that interprets the contents of the script?
answer
#!
question
What character is used to delimit most Linux configuration files?
answer
colon
question
What command can be used to replace characters in a file sent via Standard Input?
answer
tr
question
What environment file is always executed immediately after login for all users on the system, and sets most environment variables, such as HOME and PATH?
answer
/etc/profile
question
What number represents the stderr file descriptor?
answer
2
question
What permissions are required to execute a shell script in a manner similar to any other executable program on the system?
answer
read and execute
question
Which command can be used to count the number lines, words, and characters in a file?
answer
wc
question
When using Systemd, what command can be used to start, stop, and configure daemons to start automatically when the system starts?
answer
systemctl
question
After modifying the /etc/default/grub file, what command should be run to rebuild the grub config files?
answer
grub-mkconfig
question
In Fedora 20, where are user configured settings for Xorg stored?
answer
/etc/X11/xorg.conf.d/
question
In Linux, what runlevel is also known as the multiuser mode?
answer
2
question
In order to change keyboard layout if X Windows can't detect the layout, you should use what CLI command?
answer
system-config-keyboard
question
In standard GRUB notation, select the option below that represents the first hard drive in a system, and the first partition on that hard drive.
answer
(hd0,0)
question
In the /etc/lilo.conf file, what keyword should be specified in order to provide the absolute pathname to the Linux kernel?
answer
image=
question
On Linux systems that use the traditional UNIX SysV init, what command below can be used to list and modify the runlevels that a daemon is started in?
answer
chkconfig
question
Once X Windows is configured, what command can be used to fine tune the vertical and horizontal refresh rate?
answer
xvidtune
question
The GUI components and related software take up how much space on a typical Linux installation?
answer
4GB
question
Under what directory is the Linux kernel stored?
answer
/boot
question
What command below can be used to re-install GRUB2 in the event that the boot loader becomes corrupted?
answer
grub2-install
question
What command below can be used to uninstall the LILO bootloader from an active partition?
answer
lilo -U
question
What command can be used to configure the LILO, ELILO, GRUB, and GRUB2 bootloaders?
answer
grubby
question
What file controls the default runlevel when using Systemd?
answer
/etc/systemd/system/default.target
question
What is the default target on a system with a GUI installed?
answer
graphical.target
question
What keyword tells the Linux kernel to avoid printing errors to the screen during system startup?
answer
quiet
question
What stage of the GRUB boot loader typically resides on the MBR / GPT?
answer
Stage1
question
Which command below can be used to start, stop, or restart any daemons in the /etc/init.d directory?
answer
service