Linux+ Midterm
154 test answers
Unlock all answers in this set
Unlock answers 154question
In Linux, the core component of the GUI is known as:
answer
X Windows
Unlock the answer
question
Proxy servers keep track of the information passed to each client by maintaining what type of table?
answer
Network Address Translation (NAT)
Unlock the answer
question
The GNU General Public License (GPL) was developed by which organization?
answer
Free Software Foundation (FSF)
Unlock the answer
question
The Linux kernel was developed and released in 1991 by:
answer
Linus Torvalds
Unlock the answer
question
The iptables software on Linux is an example of what kind of software?
answer
Firewall
Unlock the answer
question
What Linux distribution is the most commonly used distribution within organizations today?
answer
Red Hat
Unlock the answer
question
What computer system was the first to run the UNIX operating system?
answer
DEC PDP-7
Unlock the answer
question
What piece of software tells the operating system how to use a specific hardware device?
answer
device driver
Unlock the answer
question
what service provides a method for the efficient transfer of files over the Internet?
answer
FTP
Unlock the answer
question
What software type is software that is distributed free of charge, but the source code is not available?
answer
Freeware
Unlock the answer
question
When viewing the version number for a Linux kernel, what number indicates the stability of the kernel?
answer
minor number
Unlock the answer
question
What stipulates that the source code of any software published under its license must be freely available.
answer
GNU Public License
Unlock the answer
question
Which of the following is the greatest expense for companies using Linux?
answer
Hiring people to maintain the Linux system
Unlock the answer
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
Unlock the answer
question
A calendar for the current month can be shown on the command line by issuing which command?
answer
cal
Unlock the answer
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
Unlock the answer
question
After a shell is no longer needed, what command can be given to exit the shell?
answer
exit
Unlock the answer
question
After logging into a terminal, a user will receive an interface known as which option below?
answer
shell
Unlock the answer
question
In Fedora 20, what terminal is used for graphical login?
answer
tty1
Unlock the answer
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)
Unlock the answer
question
Select the utility below that when run will start and perform a thorough check of RAM for hardware errors:
answer
memtest86
Unlock the answer
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
Unlock the answer
question
The Linux kernel exists as a file named:
answer
vmlinuz
Unlock the answer
question
The apropos list command produces the same results as which command below?
answer
man -k list
Unlock the answer
question
Under the root directory in Linux, which directory contains system commands and utilities?
answer
/var
Unlock the answer
question
What installation media source is the most common source for Linux packages?
answer
DVD
Unlock the answer
question
What is the minimum number of user accounts that must be created at install time?
answer
2
Unlock the answer
question
. What is the recommended size for the /home directory?
answer
200 MB
Unlock the answer
question
What metacharacter can be used to issue tw term-31o commands to be run in consecutive order, without piping or redirecting output?
answer
;
Unlock the answer
question
What metacharacter indicates background command execution?
answer
&
Unlock the answer
question
What term describes the physical hardware and the underlying operating system upon which a virtual machine runs?
answer
virtual host
Unlock the answer
question
When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:
answer
Options
Unlock the answer
question
Which Linux command can be utilized to display your current login name?
answer
whoami
Unlock the answer
question
At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes
answer
:q!
Unlock the answer
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
Unlock the answer
question
In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?
answer
cd ../..
Unlock the answer
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
Unlock the answer
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
Unlock the answer
question
In what mode does the vi editor open by default?
answer
command mode
Unlock the answer
question
Select the command below that can be used to provide a long listing for each file in a directory:
answer
ls -l
Unlock the answer
question
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.
answer
*
Unlock the answer
question
The LISP artificial intelligence programming language can be used with which text editor below?
answer
Emacs editor
Unlock the answer
question
To display a text file in reverse order, what command should be used?
answer
tac
Unlock the answer
question
To display the contents of a text file called data, what command should be used?
answer
cat data
Unlock the answer
question
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?
answer
[1-4]
Unlock the answer
question
What command can be issued to confirm what directory you are in at a command line prompt?
answer
pwd
Unlock the answer
question
What command can be used to display the last five lines of a text file?
answer
tail -5
Unlock the answer
question
What command is most effective at identifying different types of files?
answer
stat
Unlock the answer
question
What metacharacter can be used to refer to the current user's home directory?
answer
~
Unlock the answer
question
When issuing the ls -F command, what special character indicates a linked file?
answer
@
Unlock the answer
question
Which character(s) below represent extended regular expression metacharacter(s)?
answer
{}
Unlock the answer
question
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?
answer
Ctrl+g
Unlock the answer
question
Which switch below can be added to the ls command to show a list of files and their type?
answer
-F
Unlock the answer
question
Select the mode below that corresponds to setting r-x:
answer
5
Unlock the answer
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
Unlock the answer
question
In a file's mode, a permission that is unavailable is represented by what character?
answer
-
Unlock the answer
question
In order to create a hard link, what command must be used?
answer
ln
Unlock the answer
question
I order to quickly create an empty file, what command can be used?
answer
vim file1
Unlock the answer
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
Unlock the answer
question
The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?
answer
/boot
Unlock the answer
question
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?
answer
/root
Unlock the answer
question
The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?
answer
$
Unlock the answer
question
The section of an inode that stores permissions is referred to as what?
answer
the mode of the file
Unlock the answer
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
Unlock the answer
question
What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?
answer
rm
Unlock the answer
question
What command can be used to copy files?
answer
cp
Unlock the answer
question
What does the setfacl -b command do?
answer
It removes all extra ACL assignments on a given file.
Unlock the answer
question
What option, when added to the rm command, is commonly referred to as the -resume option?
answer
-r
Unlock the answer
question
What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?
answer
execute
Unlock the answer
question
What permission grants a user the ability to open, read, and edit the contents of a file?
answer
write
Unlock the answer
question
What section of a filesystem contains information about the filesystem in general?
answer
superblock
Unlock the answer
question
When using the chmod command, the mode rwx can be represented by which number?
answer
7
Unlock the answer
question
In the fdisk interactive mode, what letter can be used to save changes to the partition table and exit?
answer
w
Unlock the answer
question
What command below can be used to create a new physical volume?
answer
pvcreate
Unlock the answer
question
A device that transfers data in a character-by-character fashion is referred to as what type of device?
answer
character
Unlock the answer
question
Data is read from physical hard drives in concentric circles known as which of the following?
answer
tracks
Unlock the answer
question
Errors on a filesystem are common on most filesystems. What do these errors indicate?
answer
filesystem corruption
Unlock the answer
question
In the event that you wish to disable a swap partition, what command must be used?
answer
swapoff
Unlock the answer
question
In what filesystem are most of the operating system files contained?
answer
root
Unlock the answer
question
Select the command below that shows the size of a directory and its contents in kilobytes:
answer
du
Unlock the answer
question
Select the command that can be used to check an ext2, ext3, or ext4 filesystem:
answer
mke2fs
Unlock the answer
question
Select the command that can be used to create partitions that will be stored in an MBR after installation:
answer
fdisk
Unlock the answer
question
The quotas for certain users can be edited by using which command?
answer
edquota
Unlock the answer
question
The mkfs command can be issued with what switch in order to specify a filesystem type?
answer
-t
Unlock the answer
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
Unlock the answer
question
What character device file represents the second serial port on a system (COM2)?
answer
/dev/ttyS1
Unlock the answer
question
What command can be used to check different kinds of filesystems on Linux for errors?
answer
fsck
Unlock the answer
question
What file system below is used by software programs that write to a CD-RW or DVD-RW drive?
answer
udf
Unlock the answer
question
What hex code is associated with a Linux swap type partition?
answer
82
Unlock the answer
question
Which command below provides the easiest method for monitoring free space on mounted filesystems?
answer
df
Unlock the answer
question
Which device file below represents the first primary partition on the second PATA hard disk drive?
answer
/dev/hdb1
Unlock the answer
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
Unlock the answer
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
Unlock the answer
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
Unlock the answer
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
Unlock the answer
question
What RAID level is commonly referred to as disk striping with parity?
answer
RAID5
Unlock the answer
question
Each SCSI device attached to a system must be assigned an ID number. What is this ID number called?
answer
target ID
Unlock the answer
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
Unlock the answer
question
In a SCSI chain the highest priority SCSI device is given what SCSI ID?
answer
7
Unlock the answer
question
In order to list all configuration parameters that can be modified for a subfilesystem, what command should be issued?
answer
zfs get all
Unlock the answer
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
Unlock the answer
question
Most Parallel SCSI controllers are capable of supporting up to how many devices?
answer
15
Unlock the answer
question
Select the file in the /proc directory that contains statistics on the performance of the processor
answer
loadavg
Unlock the answer
question
The first software RAID volume on a system will use a multiple disk device file that starts with what number?
answer
127
Unlock the answer
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
Unlock the answer
question
What SCSI type supports speeds of up to 80 MB/second?
answer
SCSI-3 Ultra2 Wide
Unlock the answer
question
What command is used to manage a software RAID configuration after installation?
answer
mdadm
Unlock the answer
question
What file in the /proc directory contains a list of memory address ranges reserved for device use?
answer
ioports
Unlock the answer
question
What file in the /proc directory contains information about a computer's CPU?
answer
/proc/cpuinfo
Unlock the answer
question
What file under the proc directory contains information regarding what modules are currently loaded into the Linux kernel?
answer
modules
Unlock the answer
question
What is the term for a ZFS managed filesystem that is created from ZFS pools?
answer
ZFS volume
Unlock the answer
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
Unlock the answer
question
What construct is intended for use in processing a list of objects, such as files, directories, users, printers, and so on?
answer
for
Unlock the answer
question
What operator below is known as the NOT operator?
answer
!
Unlock the answer
question
A list of all exported environment and user-defined variables in a shell can be viewed with what command below?
answer
env
Unlock the answer
question
In order to redirect a file to the standard input of a command, what metacharacter should be used?
answer
<
Unlock the answer
question
Select the escape sequence that starts a new line when used with echo:
answer
n
Unlock the answer
question
Select the escape sequence that is used for a form feed:
answer
f
Unlock the answer
question
Select the metacharacter that can be used to send the standard output of one command to another command as standard input:
answer
|
Unlock the answer
question
Select the test statement that can be used to determine if A is numerically greater than B
answer
[ A gt B ]
Unlock the answer
question
The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?
answer
awk
Unlock the answer
question
The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?
answer
echo $PS1
Unlock the answer
question
The environment variables that are set by default and their current values can be viewed with what command?
answer
set
Unlock the answer
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
>
Unlock the 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
#!
Unlock the answer
question
What character is used to delimit most Linux configuration files?
answer
colon
Unlock the answer
question
What command can be used to replace characters in a file sent via Standard Input?
answer
tr
Unlock the answer
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
Unlock the answer
question
What number represents the stderr file descriptor?
answer
2
Unlock the answer
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
Unlock the answer
question
Which command can be used to count the number lines, words, and characters in a file?
answer
wc
Unlock the answer
question
When using Systemd, what command can be used to start, stop, and configure daemons to start automatically when the system starts?
answer
systemctl
Unlock the answer
question
After modifying the /etc/default/grub file, what command should be run to rebuild the grub config files?
answer
grub-mkconfig
Unlock the answer
question
In Fedora 20, where are user configured settings for Xorg stored?
answer
/etc/X11/xorg.conf.d/
Unlock the answer
question
In Linux, what runlevel is also known as the multiuser mode?
answer
2
Unlock the answer
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
Unlock the answer
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)
Unlock the answer
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=
Unlock the answer
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
Unlock the answer
question
Once X Windows is configured, what command can be used to fine tune the vertical and horizontal refresh rate?
answer
xvidtune
Unlock the answer
question
The GUI components and related software take up how much space on a typical Linux installation?
answer
4GB
Unlock the answer
question
Under what directory is the Linux kernel stored?
answer
/boot
Unlock the answer
question
What command below can be used to re-install GRUB2 in the event that the boot loader becomes corrupted?
answer
grub2-install
Unlock the answer
question
What command below can be used to uninstall the LILO bootloader from an active partition?
answer
lilo -U
Unlock the answer
question
What command can be used to configure the LILO, ELILO, GRUB, and GRUB2 bootloaders?
answer
grubby
Unlock the answer
question
What file controls the default runlevel when using Systemd?
answer
/etc/systemd/system/default.target
Unlock the answer
question
What is the default target on a system with a GUI installed?
answer
graphical.target
Unlock the answer
question
What keyword tells the Linux kernel to avoid printing errors to the screen during system startup?
answer
quiet
Unlock the answer
question
What stage of the GRUB boot loader typically resides on the MBR / GPT?
answer
Stage1
Unlock the answer
question
Which command below can be used to start, stop, or restart any daemons in the /etc/init.d directory?
answer
service
Unlock the answer