Linux

25 July 2022
4.7 (114 reviews)
77 test answers

Unlock all answers in this set

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