cal
A calendar for the current month can be shown on the command line by issuing which command?
4
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?
exit
After a shell is no longer needed, what command can be given to exit the shell?
shell
After logging into a terminal, a user will receive an interface known as which option below?
?tty1
In Fedora 20, what terminal is used for graphical login??
?Hardware Compatibility List (HCL)
Prior to performing an installation of Linux, the hardware components of the target system should be checked against what known compatible list below??
?memtest86
Select the utility below that when run will start and perform a thorough check of RAM for hardware errors:?
?live media image
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??
vmlinuz
The Linux kernel exists as a file named:?
man -k list
The apropos list command produces the same results as which command below?
usr
Under the root directory in Linux, which directory contains system commands and utilities?
?/var
What directory under / contains the log files and spools for a Linux system??
DVD
What installation media source is the most common source for Linux packages?
two
What is the minimum number of user accounts that must be created at install time?
200 MB
What is the recommended size for the /home directory (per user)?
d ;
What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output?
?virtual host
What term describes the physical hardware and the underlying operating system upon which a virtual machine runs??
Options
When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:
whoami
When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:
:q!
?At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes?
Tab
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?
cd ../.
.
In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?
?Ctrl+k
In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line??
dd
In vi, using command mode, what ?series of key presses below will cause the line on which the cursor is on to be deleted?
?command mode
In what mode does the vi editor open by default??
ls -l
Select the command below that can be used to provide a long listing for each file in a directory:
d. *
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.
Emacs editor
The LISP artificial intelligence programming language can be used with which text editor below?
tac
To display a text file in reverse order, what command should be used??
cat data
To display the contents of a text file called data, what command should be used?
[1-4]
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4 (shortest form)?
pwd
What command can be used to display the last five lines of a text file?
?file
What command is most effective at identifying different types of files??
c.
~
What metacharacter can be used to refer to the current user's home directory?
@
When issuing the ls -F command, what special character indicates a linked file?
{}
Which character(s) below represent extended regular expression metacharacter(s)?
Ctrl+g
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?
-F
Which switch below can be added to the ls command to show a list of files and their type?
w
?In the fdisk interactive mode, what letter can be used to save changes to the partition table and exit?
pvcreate
?What command below can be used to create a new physical volume?
character
A device that transfers data in a character-by-character fashion is referred to as what type of device?
tracks
Data is read from physical hard drives in concentric circles known as which of the following?
filesystem corruption
Errors on a filesystem are common on most filesystems. What do these errors indicate?
swapoff
In the event that you wish to disable a swap partition, what command must be used??
root
In what filesystem are most of the operating system files contained?
?du
Select the command below that shows the size of a directory and its contents in kilobytes:?
e2fsck
Select the command that can be used to check an ext2, ext3, or ext4 filesystem:?
fdisk
Select the command that can be used to create partitions that will be stored in an MBR after installation:
edquota
The quotas for certain users can be edited by using which command?
-t
The mkfs command can be issued with what switch in order to specify a filesystem type?
mount -a
To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, what command can be used?
/dev/ttyS1
What character device file represents the second serial port on a system (COM2)?
fsck
What command can be used to check different kinds of filesystems on Linux for errors?
udf
What file system below is used by software programs that write to a CD-RW or DVD-RW drive?
82
What hex code is associated with a Linux swap type partition??
df
Which command below provides the easiest method for monitoring free space on mounted filesystems?
/dev/hdb1
Which device file below represents the first primary partition on the second PATA hard disk drive?
?-o loop
Which option, when used with the mount command, enables loopback mode so that an iso image can be mounted onto a directory??
for
?What construct is intended for use in processing a list of objects, such as files, directories, users, printers, and so on?
!
?What operator below is known as the NOT operator?
env
A list of all exported environment and user-defined variables in a shell can be viewed with what command below?
<
In order to redirect a file to the standard input of a command, what metacharacter should be used?
f
Select the escape sequence that is used for a form feed:
?n
Select the escape sequence that starts a new line when used with echo:
|
Select the metacharacter that can be used to send the standard output of one command to another command as standard input:
[ A -gt B ]
Select the test statement that can be used to determine if A is numerically greater than B:
awk
The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?
echo $PS1
The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?
set
The environment variables that are set by default and their current values can be viewed with what command?
>
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?
?#!
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?
colon
What character is used to delimit most Linux configuration files?
tr
What command can be used to replace characters in a file sent via Standard Input?
/etc/profile
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?
2
What number represents the stderr file descriptor?
read and execute
What permissions are required to execute a shell script in a manner similar to any other executable program on the system?
wc
Which command can be used to count the number lines, words, and characters in a file?