Chapter 5,6,7,8 Linux

Your page rank:

Total word count: 3072
Pages: 11

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant

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


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


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


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


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


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


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

mount -a

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


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


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


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

filesystem corruption

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


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


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


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


Select the command that can be used to check an ext2, ext3, or ext4 filesystem:​


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


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

​-o loop

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


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


Which of the following commands can be used to create partitions on either a MBR or GPT hard disk?


After a partition on a hard disk drive is formatted with a filesystem, all partitions on that hard disk drive must use the same filesystem. True or False?


You want to see the filesystems that are presently in use on the system. What command could you use?

cat /etc/mtab

Jim has just purchased two new SCSI hard disk drives and a controller card for them. He properly installs the hardware in his machine. Before he can use them for data storage and retrieval, what must he do? (Choose all that apply.)

-Use the fdisk command to create one or more partitions on each of the hard disk drives. -Mount any partitions created on the two hard drives such that they are accessible by the operating system. -Format any partitions created with a valid filesystem recognized by Linux.

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command?

/dev/sda1 / ext4 defaults 1 1
none /dev/pts devpts gid=5,mode=620 1 0
none /proc proc defaults 0 1
none /dev/shm tmpfs defaults 1 0
/dev/sdc2 swap swap defaults 0 1
/dev/dvd /media/dvd iso9660 noauto,ro 0 0
/dev/fd0 /media/floppy auto noauto 0 0

/, /dev/pts, and /dev/shm

A user mounts a device to a mount point directory and realizes afterward there are files previously found within the mount point directory that are needed. What should this user do?

Unmount the device from the directory.

Which command is used to display the amount of free space that exists on a filesystem?


What must you do to successfully run the fsck command on a filesystem?

Unmount the filesystem.

Character devices typically transfer data more quickly than block devices. True or False?


What does the du /var command do?

shows the size of all directories within the /var directory

What does the command dumpe2fs -h do?

displays the number of inodes used and available in an ext2 filesystem

The first floppy drive on the system is not responding. You enter the file /dev/fd0 command and receive the following output. What is the problem?
[root@server1 root]# file /dev/fd0
/dev/fd0: ASCII text
[root@server1 root]#

The device file has become corrupt.

Which of the following statements are true? (Choose all that apply.)

-Quotas can limit both user space and the number of files a user can own. -Hard limits can never be exceeded. -Soft limits allow a user to exceed them for a certain period of time

A device file _______________________. (Choose all that apply.)

-has no data section -displays a major and minor number in place of a file size

Which of the following statements regarding LVM structure is correct?

VGs are comprised of one or more PVs.

The lvextend command can be used to add additional unused space within a volume group to an existing logical volume. True or False?


You plug in a USB flash memory drive into a system that has two SATA hard disks. How will the partition on this USB flash memory drive be identified by Linux?


Which command mounts all existing filesystems in /etc/fstab?

mount -a

A user runs the fsck command with the -a option on a filesystem that is showing signs of corruption. How would that user locate any files the system was unable to repair?

Mount the filesystem and check the lost+found directory underneath the mount point.

Which command is used to format a partition on a hard disk drive with the ext4 filesystem?

mke2fs -t ext4 device

SAS transfers data to SCSI disks via parallel cables.
True or False?


Which of the following is used to describe a computer that is used to access
an iSCSI hard disk across the network?

iSCSI initiator

You want to view log files to get information about a problem that occurred during a Linux installation. In which directory will you likely find the log files?


Which of the following RAID levels is not fault tolerant?


Which command can you use during a system rescue to switch from the root of the live OS to the root of the Linux system installed on the hard disk?


Which of the following is not a type of RAID?

serial RAID

Where is the /proc filesystem stored?

in RAM

Which RAID level uses striping with parity?


RAID-Z is functionally equivalent to RAID level 1. True or False?


SCSI devices that use an 8-bit wide data path use _______.

a 50-pin connector

Which type of RAID is entirely configured during the Linux installation process?

software RAID

What command can be used to create a ZFS volume called test from the space on /dev/sdb and /dev/sdc that functions like RAID level 1?

zpool create test mirror /dev/sdb /dev/sdc

To which directory will the test ZFS volume from the previous question be mounted by the ZFS system?


Linux servers are typically installed in a rack using rackmount server hardware. Which of the following is used to describe the minimum height of a rackmount server?


Which RAID level is also referred to as mirroring?


ZFS volumes are mounted at boot time from entries within /etc/fstab by default? True or False?


Which of the following could result in a segmentation fault (fatal signal 11) during a Fedora installation?

All of the above

SCSI-1 is also referred to as _______.

slow and narrow

Which of the following items are you typically required to configure during a Linux server installation? (Choose all that apply.)

-Package selection -Boot loader configuration -System host name -Update configuration

Which of the following commands can be used on a Fedora 20 system to view hardware and service startup information during the boot process?

journalctl -b

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

target ID

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


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


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

SCSI-3 Ultra2 Wide

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

segmentation fault

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?


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?


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


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


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


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


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 command is used to manage a software RAID configuration after installation?​


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

ZFS volume

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:


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


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?


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


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

zfs get all

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


Because stderr and stdout represent the results of a command and stdin represents the input required for a command, only stderr and stdout can be redirected to/from a file. True or False?


Before a user-defined variable can be used by processes that run in subshells, that variable must be __________.


The alias command can be used to make a shortcut to a single command. True or False?


Which of the following files is always executed immediately after a user logs in to a Linux system and receives a BASH shell?


Which command could you use to see a list of all environment and user-defined shell variables as well as their current values?


Every if construct begins with if and must be terminated with?


Which of the following will display the message welcome home if the cd /home/user1 command is successfully executed?

cd /home/user1 && echo "welcome home"

The current value for the HOME variable is displayed by which of the following commands? (Choose all that apply.)

-echo ~ -echo $HOME

Which of the following file descriptor numbers represents stdout?


Which of the following operators reverses the meaning of a test statement?


What would be the effect of using the alias command to make an alias for the date command named cat in honor of your favorite pet?

When you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead.

How do you indicate a comment line in a shell script?

Begin the line with #.

You have redirected stderr to a file called Errors. You view the contents of this file afterward and notice that there are six error messages. After repeating the procedure, you notice that there are only two error messages in this file. Why?

You did not append the Standard Error to the Error file and as a result, it was overwritten when the command was run a second time.

The sed and awk commands are filter commands commonly used to format data within a pipe. True or False?


What is wrong with the following command string ls /etc/hosts >listofhostfile?

Nothing is wrong with the command.

Which of the following is not necessarily generated by every command on the system? (Choose all that apply.)

-standard input -standard deviation

Which construct can be used in a shell script to read Standard Input and place it in a variable?


A for construct is a loop construct that processes a specified list of objects. As a result, it is executed as long as there are remaining objects to process. True or False?


What does >> accomplish when entered on the command line after a command?

It appends Standard Output to a file.

Consider the following shell script:

echo -e "What is your favorite color?–> \c"
read REPLY
if [ "$REPLY" = "red" -o "$REPLY" = "blue" ]
echo "The answer is red or blue."
echo "The answer is neither red nor blue."

What would be displayed if a user executes this program and answers Blue when prompted?

The answer is neither red nor blue.

What number represents the stdin file descriptor?


What number represents the stderr file descriptor?


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?


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

"<" (please disregard the double quote marks . . . I had to put the left angle bracket inside the double quotes to make it show up. The reason being that Canvas was interpreting the left angle bracket as an HTML character and so it was not visible unless inside the double quote marks.)

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


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


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


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


What character is used to delimit most Linux configuration files?


The environment variables that are set by default and their current values can be viewed with what command?


The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?

echo $PS1

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


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?


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

read and execute

Select the escape sequence that is used for a form feed:


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

[ A -gt B ]

Select the escape sequence that starts a new line when used with echo:


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?


What operator below is known as the NOT operator?


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


Under what directory is the Linux kernel stored?


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


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


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


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


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


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


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


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


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


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


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


What file controls the default runlevel when using Systemd?​


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

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

4 GB

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?


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


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


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

lilo -U

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


Share This

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more


A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message