9

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which device file below represents the first primary partition on the second PATA hard disk drive? a. /dev/hdb1 b. /dev/hdc2 c. /dev/hdc1 d. /dev/hda1

/dev/hdb1

What character device file represents the second serial port on a system (COM2)?

/dev/ttyS1

What character device file represents the second serial port on a system (COM2)? a. /dev/ttyS1 b. /dev/tty2 c. /dev/tty1 d. /dev/ttyS0

/dev/ttyS1

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?

/proc/meminfo

The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?

/root

The Filesystem Hierarchy Standard specifies what directory as the root user's home directory? - /root - /bin - /home/root - /boot

/root

​Select the mode below that corresponds to setting r-x:

5

​Select the mode below that corresponds to setting r-x: - 2 - 5 - 1 - 6

5

In a SCSI chain the highest priority SCSI device is given what SCSI ID?

7

When using the chmod command, the mode rwx can be represented by which number?

7

When using the chmod command, the mode rwx can be represented by which number? - 0 - 1 - 7 - 8

7

Which of the following commands can be used to create a BASH variable named CREATOR with the value of Torvalds?

CREATOR="Torvalds"

target ID

Each SCSI device attached to a system must be assigned an ID number. What is this ID number called?

An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.

Emacs (Editor MACroS) editor

The LISP artificial intelligence programming language can be used with which text editor below? a. Kedit editor b. Nedit editor c. Joe editor d. Emacs editor

Emacs editor

filesystem corruption

Errors on a filesystem are common on most filesystems. What do these errors indicate?

____________________ 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.

FHS

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

Volumes can contain a filesystem but they can't be mounted to directories within the Linux filesystem hierarchy.​

False

What command is most effective at identifying different types of files?​

File

Which of the following is an on-screen keyboard used with Linux?

GOK

Filenames that start with a period, such as .file, are referred to as

Hidden Files

vim file1

I order to quickly create an empty file, what command can be used?

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?

Which of the following will the split command do on a file when no other options are specified?

It will split a file into new equally sized files that are 1/10th of the original file size.

Which of the following options is passed to the Linux kernel from the GRUB2 configuration file to set the locale?

LANG

15

Most Parallel SCSI controllers are capable of supporting up to how many devices?

chkconfig

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?

xvidtune

Once X Windows is configured, what command can be used to fine tune the vertical and horizontal refresh rate?

Pog O

Pog

Pog U

Pog Off

|

Select the metacharacter that can be used to send the standard output of one command to another command as standard input:

5

Select the mode below that corresponds to setting r-x:

*

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

[ A gt B ]

Select the test statement that can be used to determine if A is numerically greater than B

memtest86

Select the utility below that when run will start and perform a thorough check of RAM for hardware errors:

Which of the following does Click Assist do?

Simulates a right click by holding down the left mouse button

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?

Which of the following accessibility features simulates simultaneous key presses when two keys are pressed in sequence?

Sticky Keys

Which of the following is a valid Linux initialization process?

Systemd SysV

Which of the following system variables can you modify to override the default system timezone within your current shell?

TZ

What file in the /proc directory contains information about a computer's CPU?

/proc/cpuinfo

The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?

/boot

What terms describe a computer connected to a remote hard disk via iSCSI, and the remote hard disk?

​iSCSI initiator ​iSCSI target

Segmentation faults can sometimes be fixed by performing what two tasks below?​

​turn off CPU cache memory increase the number of memory wait states in BIOS

If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature? a. Tab b. Ctrl c. Alt d. Esc

Tab

Each SCSI device attached to a system must be assigned an ID number. What is this ID number called?

Target ID

/boot

The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?

/root

The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?

Free Software Foundation (FSF)

The GNU General Public License (GPL) was developed by which organization?

4GB

The GUI components and related software take up how much space on a typical Linux installation?

Emacs editor

The LISP artificial intelligence programming language can be used with which text editor below?

vmlinuz

The Linux kernel exists as a file named:

Linus Torvalds

The Linux kernel was developed and released in 1991 by:

KDE

The QT toolkit is utilized by which GUI environment?

awk

The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?

grub2-install

What command below can be used to re-install GRUB2 in the event that the boot loader becomes corrupted?

lilo -U

What command below can be used to uninstall the LILO bootloader from an active partition?

rm

What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?

pwd

What command can be issued to confirm what directory you are in at a command line prompt?

fsck

What command can be used to check different kinds of filesystems on Linux for errors?

grubby

What command can be used to configure the LILO, ELILO, GRUB, and GRUB2 bootloaders?

cp

What command can be used to copy files?

tail -5

What command can be used to display the last five lines of a text file?

tr

What command can be used to replace characters in a file sent via Standard Input?

stat

What command is most effective at identifying different types of files?

mdadm

What command is used to manage a software RAID configuration after installation?

DEC PDP-7

What computer system was the first to run the UNIX operating system?

for

What construct is intended for use in processing a list of objects, such as files, directories, users, printers, and so on?

It removes all extra ACL assignments on a given file.

What does the setfacl -b command do?

/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?

/etc/systemd/system/default.target

What file controls the default runlevel when using Systemd?

ioports

What file in the /proc directory contains a list of memory address ranges reserved for device use?

/proc/cpuinfo

What file in the /proc directory contains information about a computer's CPU?

udf

What file system below is used by software programs that write to a CD-RW or DVD-RW drive?

modules

What file under the proc directory contains information regarding what modules are currently loaded into the Linux kernel?

82

What hex code is associated with a Linux swap type partition?

DVD

What installation media source is the most common source for Linux packages?

graphical.target

What is the default target on a system with a GUI installed?

2

What is the minimum number of user accounts that must be created at install time?

ZFS volume

What is the term for a ZFS managed filesystem that is created from ZFS pools?

quiet

What keyword tells the Linux kernel to avoid printing errors to the screen during system startup?

;

What metacharacter can be used to issue tw term-31o commands to be run in consecutive order, without piping or redirecting output?

~

What metacharacter can be used to refer to the current user's home directory?

&

What metacharacter indicates background command execution?

2

What number represents the stderr file descriptor?

0

What number represents the stdin file descriptor?

!

What operator below is known as the NOT operator?

-r

What option, when added to the rm command, is commonly referred to as the -resume option?

execute

What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?

write

What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?

write

What permission grants a user the ability to open, read, and edit the contents of a file?

read and execute

What permissions are required to execute a shell script in a manner similar to any other executable program on the system?

device driver

What piece of software tells the operating system how to use a specific hardware device?

superblock

What section of a filesystem contains information about the filesystem in general?

Freeware

What software type is software that is distributed free of charge, but the source code is not available?

Stage1

What stage of the GRUB boot loader typically resides on the MBR / GPT?

GNU Public License

What stipulates that the source code of any software published under its license must be freely available.

virtual host

What term describes the physical hardware and the underlying operating system upon which a virtual machine runs?

@

When issuing the ls -F command, what special character indicates a linked file?

systemctl

When using Systemd, what command can be used to start, stop, and configure daemons to start automatically when the system starts?

Options

When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:

7

When using the chmod command, the mode rwx can be represented by which number?

minor number

When viewing the version number for a Linux kernel, what number indicates the stability of the kernel?

whoami

Which Linux command can be utilized to display your current login name?

What is contained in the DISPLAY variable on a Linux system running the X window system?

Which X server the client is supposed to connect to by default.

{}

Which character(s) below represent extended regular expression metacharacter(s)?

service

Which command below can be used to start, stop, or restart any daemons in the /etc/init.d directory?

df

Which command below provides the easiest method for monitoring free space on mounted filesystems?

wc

Which command can be used to count the number lines, words, and characters in a file?

/dev/hdb1

Which device file below represents the first primary partition on the second PATA hard disk drive?

Hiring people to maintain the Linux system

Which of the following is the greatest expense for companies using Linux?

Ctrl+g

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

--loop

Which option, when used with the mount command, enables loopback mode so that an iso image can be mounted onto a directory?

-F

Which switch below can be added to the ls command to show a list of files and their type?

​What two commands below will work recursively if specified with the -R option? (Select 2 answers.) - cp - rm - mkdir - mv

cp, rm

Which of the following commands will show the current user cron jobs that have been created for the currently logged in user?

crontab -l

Which of the following commands will display messages that were displayed during the boot sequence by the kernel?

dmesg

Select the command below that shows the size of a directory and its contents in kilobytes:​

du

Select the command below that shows the size of a directory and its contents in kilobytes:​ - du - sizeof - df - dir

du

Which of the following commands will display the exit status of the last command used in the BASH shell?

echo $?

When writing shell scripts and using an if statement to determine whether a set of code should be executed, what is the proper syntax to end the if construct? ___________

fi

Errors on a filesystem are common on most filesystems. What do these errors indicate?

filesystem corruption

Which of the following constructs can be used in a shell script to determine whether two values are equal and if so run another set of commands?

if

What file in the /proc directory contains a list of memory address ranges reserved for device use?

ioports

Which of the following commands can be used to only show jobs that have been paused.

jobs -s

In Fedora 20, what journaling database system has replaced the logging system used to record the messages normally stored within the boot.log, messages, and syslog files?

journald

Select the command below that utilizes a premade database that contains a list of all the files on a system:

locate

Select the command below that utilizes a premade database that contains a list of all the files on a system: - locate - search - find - id

locate

What two commands below can be used to locate files on a filesystem?

locate find

What two commands can be used to locate files on a filesystem? - locate - grep - read - find

locate, find

Which of the following commands can be used to display general hardware information for the entire system?

lshw

Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)?

lsof

​Select the two commands below that can be used to prepare a swap partition and then enable it for use:

mkswap ​swapon

Which of the following virsh commands will display the total amount of memory as well as the amount of free memory for a node?

nodememstats

Which of the following commands can be used to terminate a process by the process name?

pkill

When a user creates a file or directory, that user's name and ____________________ becomes the owner and group owner of the file, respectively.

primary group

What command is used to display the lineage of a process by tracing its PPIDs until the init daemon?

pstree

What command below can be used to create a new physical volume?

pvcreate

​What command below can be used to create a new physical volume? a. lvcreate b. pvdisk c. pvcreate d. new_pv

pvcreate

What command can be issued to confirm what directory you are in at a command line prompt?

pwd

Which of the following characters, when pressed while the top program is running, will allow you to change the niceness of a process?

r

If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?​

read write

If a Linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred?

segmentation fault

Which of the following commands will count down from 10 to 1?

seq 10 -1 1

Which of the following commands will display the contents of the /etc/passwd file in alphanumerical order?

sort /etc/passwd

The section of an inode that stores permissions is referred to as what?

the mode of the file

Which of the following commands will list the time zones available on a Linux system?

timedatectl list-timezones

Which of the following commands will show a list of process names along with their process ID (PID)? (Choose two.)

top ps

Data is read from physical hard drives in concentric circles known as which of the following?

tracks

Data is read from physical hard drives in concentric circles known as which of the following? a. blocks b. tracks c. sectors d. cylinders

tracks

A computer connected to a remote hard disk via iSCSI is referred to as an iSCSI initiator. true or false

true

Using the syntax below, what command will create directories named one, two, and three? ​ echo one two three | ___________ mkdir

xargs

In order to list all configuration parameters that can be modified for a subfilesystem, what command should be issued?​

zfs get all

Which of the following states describe a process that is waiting for a parent process to release its PID?

zombie

Which character(s) below represent extended regular expression metacharacter(s)?

{}

What metacharacter can be used to refer to the current user's home directory?

~

If incompatible X Windows settings are configured, where will the errors that are generated be written to?

~/.xsession-errors

What file in the /proc directory contains information about a computer's CPU?​

​/proc/cpuinfo

What does the setfacl -b command do?​

​It removes all extra ACL assignments on a given file

What command can be used to copy files? - copy - cp - cpy - mv

cp

Which of the following files can you add filenames to so that the git add * command will not stage them?

.gitignore

w

In the fdisk interactive mode, what letter can be used to save changes to the partition table and exit?

root

In what filesystem are most of the operating system files contained?

command mode

In what mode does the vi editor open by default?

What option, when added to the rm command, is commonly referred to as the -resume option? - r - d - f - i

-r

The mkfs command can be issued with what switch in order to specify a filesystem type? a. -o b. -f c. -c d. -t

-t

0

At what runlevel does a Linux system have no daemons active in memory, allowing it to be safely powered off?

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?

swapoff

In the event that you wish to disable a swap partition, what command must be used?

200 MB

. What is the recommended size for the /home directory?

Which of the following characters can be entered at the beginning of a line in a shell script to ensure that line is recognized as a comment rather than try to execute it?

#

The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?

$

The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command? - $ - & - # - *

$

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character. a. + b. ^ c. ? d. *

*

In a file's mode, a permission that is unavailable is represented by what character?

-

Which option, when used with the mount command, enables loopback mode so that an iso image can be mounted onto a directory?​ a. -o loop b. --mode l c. --option l d. --loop

--loop

Which switch below can be added to the ls command to show a list of files and their type?

-F

Select the command below that can be used to provide a long listing for each file in a directory:

-l

What option, when added to the rm command, is commonly referred to as the -resume option?

-r

A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs?

/etc/cron.deny

In which directory would a system administrator store scripts that should be run monthly by the cron daemon?

/etc/cron.monthly

Which of the following files is where the default runlevel is set on some Linux systems?

/etc/inittab

Which of the following files is a binary file that contains the rules for calculating the time based on your time zone relative to epoch time?

/etc/localtime

Match the file with the order in which the BASH shell environment files are read: First Second Third Fourth

/etc/profile /etc/profile.d/* /etc/bashrc ~/.bashrc

In addition to /etc/localtime, some Linux distributions also have an /etc/timezone text file that contains a reference to the correct time zone file contained in which directory?

/usr/share/zoneinfo

Where are scheduled commands stored on Ubuntu Linux systems?

/var/spool/cron/atjobs

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?

1024

Which of the following represents stderr at the command line when used for redirection?

2

What hex code is associated with a Linux swap type partition?​

82

What hex code is associated with a Linux swap type partition?​ a. ​96 b. 83 c. 12 d. 82

82

​At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes? a. ​:q! b. ​:! c. :exit d. :q

:q!

Which of the following can be used for comparing values within an if statement? (Choose two.)

= -lt

Which of the following will take output from a command and append it to the end of a file?

>>

When issuing the ls -F command, what special character indicates a linked file?

@

RAID-Z

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:

cal

A calendar for the current month can be shown on the command line by issuing which command?

character

A device that transfers data in a character-by-character fashion is referred to as what type of device?

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?

env

A list of all exported environment and user-defined variables in a shell can be viewed with what command below?

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?

grub-mkconfig

After modifying the /etc/default/grub file, what command should be run to rebuild the grub config files?

tarball

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:

:q!

At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes

Which of the following is the default desktop environment used by Linux Mint?

Cinnamon

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

Ctrl +g

In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?​ a. ​Ctrl+k b. ​dd c. ​Ctrl+a d. ​Ctrl+d

Ctrl+k

tracks

Data is read from physical hard drives in concentric circles known as which of the following?

C

Dennis Ritchie invented what programming language, which was then used to rewrite the UNIX operating system?

segmentation fault

If a Linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred?

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?

journald

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?

tty1

In Fedora 20, what terminal is used for graphical login?

/etc/X11/xorg.conf.d/

In Fedora 20, where are user configured settings for Xorg stored?

X Windows

In Linux, the core component of the GUI is known as:

2

In Linux, what runlevel is also known as the multiuser mode?

7

In a SCSI chain the highest priority SCSI device is given what SCSI ID?

-

In a file's mode, a permission that is unavailable is represented by what character?

system-config-keyboard

In order to change keyboard layout if X Windows can't detect the layout, you should use what CLI command?

ln

In order to create a hard link, what command must be used?

zfs get all

In order to list all configuration parameters that can be modified for a subfilesystem, what command should be issued?

cd ../..

In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?

<

In order to redirect a file to the standard input of a command, what metacharacter should be used?

chmod 7777 filename

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?

1024

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?

(hd0,0)

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.

image=

In the /etc/lilo.conf file, what keyword should be specified in order to provide the absolute pathname to the Linux kernel?

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?

Network Address Translation (NAT)

Proxy servers keep track of the information passed to each client by maintaining what type of table?

​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:

RAID Z

Text wildcards used to ease the searching of specific text information are called _________________________.

Regular expressions (regexp)

What SCSI type supports speeds of up to 80 MB/second?

SCSI-3 Ultra2 Wide

​What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file? - SGID - SUID - SQUID - sticky bit

SGID, SUID

​What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file? ​

SUID ​SGID

If a Linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred?

Segmentation fault

ls -l

Select the command below that can be used to provide a long listing for each file in a directory:

du

Select the command below that shows the size of a directory and its contents in kilobytes:

chroot

Select the command that can be used to change the root filesystem to a different directory, such as when in a rescue environment

mke2fs

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:

\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:

loadavg

Select the file in the /proc directory that contains statistics on the performance of the processor

man -k list

The apropos list command produces the same results as which command below?

$

The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?

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?

127

The first software RAID volume on a system will use a multiple disk device file that starts with what number?

Firewall

The iptables software on Linux is an example of what kind of software?

-t

The mkfs command can be issued with what switch in order to specify a filesystem type?

Total cost of ownership (TCO)

The overall cost of using a particular operating system is known as?

edquota

The quotas for certain users can be edited by using which command?

the mode of the file

The section of an inode that stores permissions is referred to as what?

>

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?

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?

/proc/meminfo

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?

mount -a

To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, what command can be used?

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

/var

Under the root directory in Linux, which directory contains system commands and utilities?

/boot

Under what directory is the Linux kernel stored?

Which of the following is responsible for starting tasks and services during boot, stopping them during shutdown, and supervising them while the system is running?

Upstart

[1-4]

Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?

Red Hat

What Linux distribution is the most commonly used distribution within organizations today?

RAID5

What RAID level is commonly referred to as disk striping with parity?

SCSI-3 Ultra2 Wide

What SCSI type supports speeds of up to 80 MB/second?

g+r-w

What argument can be used with the chmod command to add read permission and remove write permission for a group on a 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?

/dev/ttyS1

What character device file represents the second serial port on a system (COM2)?

colon

What character is used to delimit most Linux configuration files?

pvcreate

What command below can be used to create a new physical volume?

Artistic

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?

Due to the fact that the * character can be used to match all ​characters in a filename, or all files in a directory, it is referred to as a ____________ metacharacter.

Wildcard

Which of the following is a lightweight desktop environment that uses very few system resources that a system administrator might choose to install on a Linux server instead of one of the two main desktop environments?

XFCE

/var/log/boot.log

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?

What is the term for a ZFS managed filesystem that is created from ZFS pools?​

ZFS volume

Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?

[1-4]

Which of the following is the common escape sequence to display a horizontal tab using the echo command?

\t

Levi wants to run 5 commands sequentially, but does not want to create a shell script. He knows that each command is going to take approximately 20 minutes to run individually. However, he would like to go to lunch 15 minutes from now. He knows that he can type all of the commands on the same line and separate them with a certain character to run them sequentially. Which character can he type after each command to have them run one after the next without requiring further input from him?

a semicolon

Which command can be used to create a new command that will monitor the contents of auth.log as they get added to the file?

alias showauth='tail -f /var/log/auth.log'

A system administrator wants to schedule a task to run at 11 pm, but knows that she will not be in the office at that time. Which of the following commands can she use to schedule this task to run that night while she is at home?

at

Which of the following command can be used to remove a job from the list of pending jobs? (Choose all that apply.)

at -d at -r atrm

Which of the following commands will display a list of the pending jobs to be run? (Choose all that apply.)

atq at -l at -q

In a file's mode, a permission that is unavailable is represented by what character? - ? - * - "b -" - +

b -

Which of the following results would be created by the command sequence: echo 'apple banana carrot dog elephant' | while read a b c; do echo result: $c $b $a; done

carrot dog elephant banana apple

Which of the following commands will send the output of the cat command to the grep command to be filtered?

cat /etc/passwd | grep jsmith

What command can be used to copy files?

cp

Which of the following commands will display the current CPU(s) detected by a Linux system?

cat /proc/cpuinfo

To display the contents of a text file called data, what command should be used?

cat data

In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued? a. cd .. b. /home/joe c. cd ./.. d. cd ../..

cd ../..

A device that transfers data in a character-by-character fashion is referred to as what type of device?

character

A device that transfers data in a character-by-character fashion is referred to as what type of device? a. text b. binary c. block d. character

character

​What two commands below will grant only the execute permission to username bob on file1, assuming that bob is the file's owner?

chmod 777 file1, chmod u=x​ file1

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 filenam

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

Select the command that can be used to change the root filesystem to a different directory, such as when you are in a rescue environment.

chroot

In what mode does the vi editor open by default?​ a. ​command mode b. ​overview mode c. ​insert mode d. append mode

command mode

You have run the top command successfully, but realize that the q key on the keyboard has suddenly stopped working. What is another way that you can exit out of the top program?

ctrl-c

In vi, using command mode, what ​series of key presses below will cause the line on which the cursor is on to be deleted? a. ​yw b. ​dd c. ​d d. ​X

dd

Which command should you run after installing a new kernel module to update the module dependency database?

depmod

Which command below provides the easiest method for monitoring free space on mounted filesystems? - du - df - fs - fd

df

The quotas for certain users can be edited by using which command? - chquota - usrquota - repquota - edquota

edquota

What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?​ - write - sticky bit - execute - read

execute

Volumes can contain a filesystem but they can't be mounted to directories within the Linux filesystem hierarchy.​ true or false

false

Select the command that can be used to create partitions that will be stored in an MBR after installation:

fdisk

Select the command that can be used to create partitions that will be stored in an MBR after installation: - fdisk - formatdisk - partition - format

fdisk

After a background process has been started, what command below can be used to move it to the foreground?

fg

You have started a job running in the background that you want to now bring to the front so that you can watch it execute. Which of the following commands can be used to display the job's output to the terminal?

fg

Errors on a filesystem are common on most filesystems. What do these errors indicate? a. filesystem corruption b. raid degradation c. hard drive failures d. filesystem breaks

filesystem corruption

What command can be used to check different kinds of filesystems on Linux for errors?

fsck

What command can be used to check different kinds of filesystems on Linux for errors? - chkdsk. - errorchk - fs_check - fsck

fsck

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

​What two commands below can be used to edit a GPT based hard disk's partitions? (Select 2 answers) - gdisk - parted - fdisk - gtpedit

gdisk, parted

Which of the following commands should you use to specify that you want to use Git for version tracking on them?

git add

Which command can be used to download an updated copy of the master branch from the original Git repository?

git pull origin master

Which of the following will look at the /etc/passwd file for any lines containing the word root and display them out to the screen while simultaneously writing the results to a file?

grep root /etc/passwd | tee ~/root.txt

Which of the following can be used to compare the hardware clock to the system clock, writing a new result to a new line every 10 seconds?

hwclock -c

Which of the following is a type of software that allows a piece of hardware to host multiple operating systems?

hypervisor

Which of the following commands can be used to convert files between different character encodings?

iconv

​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?

journald

Which of the following commands will send a process's resources to /dev/null to kill the process for process ID 1357?

kill -9 1357

​Select the two commands in fdisk's interactive mode that can be used to show known partition types and view the current partition table:

l p

​Select the two commands in fdisk's interactive mode that can be used to show known partition types and view the current partition table: (Select 2 answers) a. l b. a c. p d. v

l, p

In order to create and manage KVM or Qemu virtual machines, a Linux system must have which of the following installed?

libvert

In order to create a hard link, what command must be used?

ln

In order to create a hard link, what command must be used? - ln - link - lk - lnk

ln

Select the file in the /proc directory that contains statistics on the performance of the processor:

loadavg

Which of the following commands will show a number of environment variables that start with LC_?

locale

Which of the following commands can be used to display the current locale of a system? (Choose two.)

locale localectl

A government office wants to secure a few of its Linux systems so that they can only use certain USB devices. After plugging in a USB device, which of the following commands could be used to detect certain identifying information that can be used to only allow that type of USB device?

lsusb

​Select the commands that can be used to extend a volume group and logical volume respectively: (Select 2 answers) a. lvextend b. vgextend c. lvm_extend d. pgextend

lvextend, vgextend

What command is used to manage a software RAID configuration after installation?

mdadm

Which of the following commands can be used to create and manage a software RAID configuration after installation?

mdadm

The subdirectory newdir does not currently exist in the current directory that you are in. Which of the following commands will create a new directory named newdir and then change into that directory? (Choose two.)

mkdir newdir && cd newdir mkdir newdir; cd newdir

Select the command that can be used to check an ext2, ext3, or ext4 filesystem:​ a. mke2fs b. ext2fsck c. fdisk d. e2fsck

mke2fs

Which of the following commands will generate a new initramfs?

mkinitrd dracut

​Select the two commands below that can be used to prepare a swap partition and then enable it for use: (Select 2 answers) a. swapit b. mkswap c. ​swapon d. mkfs.swap

mkswap, swapon

Leonard wants to find detailed information about the Bluetooth kernel module. Which of the following commands can he use to display this information?

modinfo bluetooth

What file under the proc directory contains information regarding what modules are currently loaded into the Linux kernel?

modules

To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, what command can be used?

mount -a

To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, what command can be used? a. mount -f b. mount -u c. mount -o d. mount -a

mount -a

Which of the following is the default window manager used by the GNOME version 3 desktop environment?

mutter

Which of the following commands will display the output of a file while also displaying a line number at the left side of each line for the /etc/passwd file?

nl /etc/passwd

Which of the following can be included in a shell script to ask the user to type in a password and then store it in the variable named $password?

read -s -p "Please enter the password: " password

If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?​ - read - write - execute - move

read, write

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

What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?

rm

What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove? - rm - del - delete - remove

rm

In what filesystem are most of the operating system files contained?

root

In what filesystem are most of the operating system files contained? a. boot b. data c. root d. mnt

root

Which of the following commands will show the current runlevel along with the previous runlevel? (Choose all that apply.)

runlevel

Which of the following is a valid method of running a script named myscript.sh? (Choose two)

source myscript.sh ./myscript.sh

What section of a filesystem contains information about the filesystem in general?

superblock

In the event that you wish to disable a swap partition, what command must be used?​ a. umount b. ​swapoff c. ​swapdrop d. ​delete_swap

swapoff

To create a(n) ____________________ link, you use the -s option to the ln command.

symbolic

Which of the following is a virtual filesystem that is made up of virtual files that a Linux operating system is able to export information to about kernel sub-systems, hardware devices, and device drivers to make it easy for users to access the information?

sysfs

Which of the following commands will set the default runlevel of a Linux system?

systemctl set-default runlevel5.target

Which of the following commands will display a list of Systemd units sorted by the time they took to load?

systemd-analyze blame

To display a text file in reverse order, what command should be used?​ a. tee b. ​tac c. ​cat d. ​sed

tac

What command can be used to display the last five lines of a text file?

tail -5

RAID level 6 is basically the same as RAID level 5, but it adds a second set of parity bits for added fault tolerance ​and allows up to two simultaneous hard disk drive failures while remaining fault tolerant. true or false

true

The more filesystems that are used on a system, the less likely a corrupted filesystem will interfere with normal system operations.

true

​The database for the locate command can be updated manually by using the updatedb command. true or false

true

Which of the following commands will prompt you to answer a series of questions to help determine which time zone file you should use?

tzselect

What file system below is used by software programs that write to a CD-RW or DVD-RW drive?

udf

What file system below is used by software programs that write to a CD-RW or DVD-RW drive? - udf - ntfs - hpfs - ext2

udf

An alias has previously been created named showauth. Which of the following commands can be used to get rid of that alias?

unalias showauth

How many times will the following loop execute as part of a script: #!/bin/bash COUNTER=0 while [ $COUNTER -lt 7 ] do echo "hello world" done

until ctrl-c is used to terminate it

What two commands can be used to show information about physical volumes and logical volumes respectively?​ (Select 2 answers) a. showvg b. showlv c. lvdisplay d. vgdisplay

vgdisplay, lvdisplay

In order to quickly create an empty file, what command can be used?​

vim file1

On a system using the KVM hypervisor, which of the following modules would you expect to see as part of the output of the lsmod command on a guest Linux virtual machine?

virtio

​In the fdisk interactive mode, what letter can be used to save changes to the partition table and exit? - w - s - q - d

w

Which of the following commands can be used to schedule very frequent recurring tasks, such as running once every minute?

watch

Which of the following commands will count the number of lines in a file named data.csv?

wc -l data.csv

FTP

what service provides a method for the efficient transfer of files over the Internet?

The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.

which command

What permission grants a user the ability to open, read, and edit the contents of a file?

write

​What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?

write

​What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file? - read - write - sticky bit - execute

write


Ensembles d'études connexes

Chapter 16: Employment Discrimination

View Set

Module 3 Respiratory Disorders: COPD

View Set

Test 2 INCORRECT Answers General Psychology

View Set

NBA TEAMS THAT WON CHAMPIONSHIPS

View Set

ART 10- Native American & First Nations Art (The Southwest)

View Set