Chapter 5

24 July 2022
4.7 (114 reviews)
39 test answers

Unlock all answers in this set

Unlock answers (35)
question
parted
answer
Which of the following commands can be used to create partitions on either a MBR or GPT hard disk?
question
False
answer
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?
question
cat /etc/mtab
answer
You want to see the filesystems that are presently in use on the system. What command could you use?
question
-Use the fdisk command to create one or more partitions on each of the hard disk drives. -Use the fdisk command to create one or more partitions on each of the hard disk drives. -Format any partitions created with a valid filesystem recognized by Linux.
answer
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.)
question
/, /dev/pts, and /dev/shm
answer
Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command? [BEGIN CODE] /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 [END CODE]
question
Unmount the device from the directory.
answer
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?
question
df
answer
Which command is used to display the amount of free space that exists on a filesystem?
question
Unmount the filesystem.
answer
What must you do to successfully run the fsck command on a filesystem?
question
False
answer
Character devices typically transfer data more quickly than block devices. True or False?
question
shows the size of all directories within the /var directory
answer
What does the du /var command do?
question
displays the number of inodes used and available in an ext2 filesystem
answer
What does the command dumpe2fs -h do?
question
The device file has become corrupt.
answer
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]#
question
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.
answer
Which of the following statements are true? (Choose all that apply.)
question
has no data section but displays a major and minor number in place of a file size
answer
A device file _______________________.
question
VGs are comprised of one or more PVs.
answer
Which of the following statements regarding LVM structure is correct?
question
True
answer
The lvextend command can be used to add additional unused space within a volume group to an existing logical volume. True or False? Correct! True
question
/dev/sdc1
answer
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?
question
Mount the filesystem and check the lost+found directory underneath the mount point.
answer
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?
question
mke2fs -t ext4 device
answer
Which command is used to format a partition on a hard disk drive with the ext4 filesystem?
question
character
answer
A device that transfers data in a character-by-character fashion is referred to as what type of device?
question
/dev/hdb1
answer
Which device file below represents the first primary partition on the second PATA hard disk drive?
question
/dev/ttyS1
answer
What character device file represents the second serial port on a system (COM2)?
question
udf
answer
What file system below is used by software programs that write to a CD-RW or DVD-RW drive?
question
root
answer
In what filesystem are most of the operating system files contained?
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
tracks
answer
Data is read from physical hard drives in concentric circles known as which of the following?
question
fdisk
answer
Select the command that can be used to create partitions that will be stored in an MBR after installation:
question
df
answer
Which command below provides the easiest method for monitoring free space on mounted filesystems?
question
filesystem corruption
answer
Errors on a filesystem are common on most filesystems. What do these errors indicate?
question
fsck
answer
What command can be used to check different kinds of filesystems on Linux for errors?
question
edquota
answer
The quotas for certain users can be edited by using which command?
question
​pvcreate
answer
​What command below can be used to create a new physical volume?
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
swapoff
answer
In the event that you wish to disable a swap partition, what command must be used?​
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
w
answer
​In the fdisk interactive mode, what letter can be used to save changes to the partition table and exit?
question
​82
answer
What hex code is associated with a Linux swap type partition?​