Linux midterm quizzes

What software type is software that is distributed free of charge, but the source code is not available?
Freeware
When viewing the version number for a Linux kernel, what number indicates the stability of the kernel?
Minor number
What piece of software tells the operating system how to use a specific hardware device?
Device driver
The mutt software is an example of what type of mail service software on Linux?
Mail User Agent
In what year was the source code for the Linux kernel released?
1991
The GNU General Public License (GPL) was developed by which organization?
Free Software Foundation (FSF)
In Linux, the core component of the GUI is known as
X windows
What service provides a method for the efficient transfer of files over the Internet?
FTP
The overall cost of using a particular operating system is known as?
Total cost of ownership (TCO)
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?
Artistic
What two Linux distributions below utilize the Debian package manager by default?
Linux Mint
Ubuntu Linux
The two different implementations of X Windows are called
XFree86
X.org
What two options below are examples of common UNIX flavors?
Macintosh OS X
HP-UX
Open source software (OSS) is freely developed and continuously improved by a large community of software developers
True
Each computer on a network requires a unique way to identify itself and to refer to other computers. This is accomplished by using IP addresses.
True
Many programming function libraries and UNIX-like commands appeared in the 1989s as a result of the work on the GNU project.
True
On closed-source operating system, hot fixes for software bugs are deployed very quickly
False
The term hacker refers to someone who illegally uses computers for personal benefit or to cause damage.
False
Database Management Systems (DBMSs)
Are a collection of programs and tools designed to allow for the creation, modification, manipulation, maintenance, and access of information from databases
The ___________ implementation of X Windows is the latest implementation, and is based on the original MIT X Windows project that was released as OSS in 2004
X.org
At minimum, Linux typically requires only two partitions to be created: a partition that is mounted to the root directory, and a partition for virtual memory.
True
A swap partition contains a filesystem
False
By default, Fedora 20 allows the root user to log in to the GNOME desktop
False
When a user interacts with his computer, he interacts directly with the kernel of the computer’s operating system.
False
In the past, SATA hard disks were referred to as Integrated Drive Electronics (IDE)
False
In Linux, the command _____________ displays currently logged-in users
who
To print the current date and time, type the command _________
date
What metacharacter indicates background command execution?
&
A calendar for the current month can be shown on the command line by issuing which command?
cal
When using command-line terminal, specific letters that start with a dash and appear after command names are considered to be
Options
In Fedora 20, what terminal is used for graphical login?
tty1
Prior to performing an installation of Linux, the hardware components of the target system should be checked against what known compatible list below?
Hardware compatibility list (HCL)
The Linux kernel exists as a file named
vmlinuz
What installation media source is the most common source for Linux package?
DVD
Under the root directory in Linux, which directory contains system commands and utilities?
/usr
What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output?
;
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?
4
In order to switch between terminals in Linux, a user can press what two keys in combination with the F1-F6 keys?
Ctrl
Alt
Which filesystems below perform journaling?
REISER
ext4
What two commands below will halt a Linux system immediately?
shutdown -H now
halt
The more command should not be used on binary fikes
True
Linux uses a logical directory tree to organize files into different folders
True
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program
False
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?
Ctrl+g
What command can be used to display the last five lines of a text file?
tail -5
What command is most effective at identifying different types of files?
stat
Select the command below that can be used to provide a long listing for each file in a directory
ls -l
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?
[1-4]
In what mode does the vi editor open by default?
command mode
At the vi command mode prompt, what key combination below will force a quit from the vi editor without saying changes?
:q!
To display a text file in reverse order, what command should be used?
tac
The LISP artificial intelligence programming language can be used with which text editor below?
Emacs editor
In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?
Ctrl+k
What two regular expression characters can be used to match the characters at the beginning or end of a line, respectively?
^
$
Select below the command and the associated alias available on most Linux systems that displays a long listing for each file in a directory?
ls -l
ll
Select the two filename extensions that are associated with C++ programming language source code files:
.cc
.cpp
Filenames that start with a period, such as .file, are referred to as _____________ files
hidden
In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file’s ____________
permissions
An alternative to the vi editor that offers an equal set of functionality is the GNU ___________
Emacs editor
Text wildcards used to ease the searching of specific text information are called _____________
regular expressions
If a file’s permissions are set to 760, what permissions are available to the group assigned to the file?
read
write
What two commands below will grant all permissions to username bob on file1, assuming that bob is the file’s owner?
chmod 777 file1
chmod a+rwx file1
What two commands below can be used to locate files on a filesystem?
locate
find
What two commands below will work recursively if specified with the -R option?
cp
rm
The __________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
which
To copy a directory full of files in Linux, you must tell the cp command that the copy will be ________ (involve files and subdirectories too) by using the -r option
recursive
___________ defines a standard set of directories for use by all Linux and UNIX systems, as well as the file and subdirectory contents of each directory.
Filesystem Hierarchy Standard
Shell scripts do not require the execute permission in order to be run the same way binary programs are run.
False
You can use wildcard metacharacters with the find command
True
The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.
True
In a file’s mode, a permission that is unavailable is represented by what character?
The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?
$
What permission (when applied to a directory) allows a user to enter the directory and work with the directory contents?
Execute
The Filesystem Hierarchy Standard specifies what directory as the root user’s home directory?
/root
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?
chmod 7777 filename
What does the setfacl -b command do?
It removes all extra ACL assignments on a given file.
What permission grants a user the ability to open, read, and edit the contents of a file?
write
What command can be used to copy files?
cp
Select the mode below that corresponds to setting r-x
5
What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?
g+r-w
The ___________ command can be used to create and work with up to 128 primary partitions on a GPT hard disk using an interface that is nearly identical to fdisk
gdisk
An extended partition can contain many subpartitions called
logical drives
The ________ of a VG decides the block size for saving data since it cannot be safely changed later
physical extent size
When you insert a DVD while in a GUI environment, it is automatically mounted by the system to a directory underneath the /media directory that is named for the label on the DVD
True
Each device attached to a system can be represented by multiple device files
False
In Linux, you are restricted to using only one type of filesystem on a system
False
The more filesystems that are used on a system, the less likely a corrupted filesystem will interfere with normal system operations
True
Volumes can contain a filesystem but they cannot be mounted to directories within the Linux filesystem hierarchy
False
What file system below is used by software programs that write to a CD-RW or DVD-RW drive?
udf
In the event that you wish to disable a swap partition, what command must be used?
swapoff
Data is read from physical hard drives in concentric circles known as
tracks
The mkfs command can be issued with what switch in order to specify a filesystem type?
-t
Errors on a filesystem are common on most filesystems. What do these errors indicate?
filesystem corruption
Select the command that can be used to check an ext2, ext3, or ext4 filesystem
mke2fs
What command below can be used to create a new physical volume?
pvcreate
What character device file represents the second serial port on a system (COM2)?
/dev/ttyS1
Which device file below represents the first primary partition on the second PATA hard disk drive?
/dev/hdb1
In what filesystem are most of the operating system files contained?
root
Select the commands that can be used to extend a volume group and logical volume respectively
vgextend
lvextend
What two commands below can be used to edit a GPT based hard disk’s partitions?
gdisk
parted
The ________ environment variable contains a list of directories to search for executable programs
PATH
Most commands that are run by the shell are run in a separate ______, which is created by the current shell
subshell
Any command that can take standard input and transform it into standard output is call a _____ command
filter
Given the syntax command && command, the command on the left of the && construct is executed only if the command on the right of the && construct completed successfully
False
To prevent a file from being cleared by the BASH shell and append output to the existing output, you can specify three > metacharacters alongside the file descriptor
False
You are limited to using one pipe metacharacter on the command line to pipe information from one command to another command
False
You can use the sed command to remove unwanted lines of text
True
Any command that can be executed on the command line can also be placed inside any environment file
True
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?
>
Select the test statement that can be used to determine if A is numerically greater than B
[ A -gt B]
What operator below is known as the NOT operator?
!
Select the escape sequence that is used for a form feed
f
Select the metacharacter that can be used to send the standard output of one command to another command as standard input
|
What character is used to delimit most Linux configuration files?
colon
The environment variables that are set by default and their current values can be viewed with what command?
set
The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?
awk
What number represents the stdin file descriptor?
What construct is intended for use in processing a list of objects, such as files, directories, users, printers, and so on?
for
What two Bash environment variables represent the current working directory, and the absolute pathname of the current shell, respectively?
PWD
SHELL
Select the two escape sequences that represent a horizontal tab and a vertical tab, respectively?
t
v