NET260.30 Linux Administration Chapter 5

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

Which of the following statements regarding LVM structure is correct? a. PVs are collections of VGs. b. LVs are created from the free space available within PVs. c. VGs are comprised of one or more PVs. d. PVs use the space within LVs to create VGs.

C

Which command is used to display the amount of free space that exists on a filesystem? a. fsck b. quota c. du d. df

D

You want to see the filesystems that are presently in use on the system. What command could you use? a. cat /etc/fstab b. ls -l /etc/fstab c. cat /etc/mtab d. ls -l /etc/fstabTrue

A

Which of the following statements are true? (Choose all that apply.) a. Quotas can only limit user space. b. Quotas can only limit the number of files a user can own. c. Quotas can limit both user space and the number of files a user can own. d. Hard limits can never be exceeded. e. Hard limits allow a user to exceed them for a certain period of time. f. Soft limits can never be exceeded. g. Soft limits allow a user to exceed them for a certain period of time. h. Either a hard limit or a soft limit can be set, but not both concurrently.

A,D,E

What does the command dumpe2fs -h do? a. backs up an ext2 filesystem b. displays the number of inodes used and available in an ext2 filesystem c. dumps an ext2 filesystem d. is not a valid command

B

A device file . (Choose all that apply.) a. has no inode section b. has no data section c. has no size d. displays a major and minor number in place of a file size e. has a fixed size of 300 kilobytes

B,D

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? a. Nothing; the files are lost and cannot ever be accessed. b. Nothing; the files could not have been there because you can only mount to empty directories. c. Unmount the device from the directory. d. Run the fsck command to recover the file. e. Look in the lostþfound directory for the file.

C

What must you do to successfully run the fsck command on a filesystem? a. Run the fsck command with the -u option to automatically unmount the filesystem first. b. Choose yes when warned that running fsck on a mounted filesystem can cause damage. c. Unmount the filesystem. d. Ensure that the filesystem is mounted.

C

Which command is used to format a partition on a hard disk drive with the ext4 filesystem? a. format_ext4 device b. ext4mkfs device c. e2mkfs -t ext4 device d. makeext4FS device

C

Which command mounts all existing filesystems in /etc/fstab? a. mount -f b. mount -a c. mount /etc/fstab d. mount /etc/mtab

C

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? a. Look in the root of the filesystem. b. The system prompts the user for a target location when it comes across a file it cannot repair. c. Mount the filesystem and check the lost+found directory underneath the mount point. d. View the contents of the directory /lostþfound.

D

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command? /dev/sda1 / ext4 defaults 11 none /dev/pts devpts gid=5,mode=620 1 0 none /proc proc defaults 01 none /dev/shm tmpfs defaults 10 /dev/sdc2 swap swap defaults 01 /dev/dvd /media/dvd iso9660 noauto,ro 00 /dev/fd0 /media/floppy auto noauto 00 a. none, as fsck must be run manually for each filesystem b. /, /dev/pts, and /dev/shm c. /, /proc, and swap d. all of them, as fsck is run automatically at boot for all filesystems

D

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.) a. Mount the two hard drives so they are accessible by the operating system. b. Mount a filesystem to each of the hard disk drives. c. Create one or more partitions on each of the hard disk drives. d. Use the vi editor to edit /etc/mtab and create an entry for the controller card and the hard disk drives. e. Mount any partitions created on the two hard drives such that they are accessible by the operating system. f. Format any partitions created with a valid filesystem recognized by Linux.

D

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]# a. The floppy drive cable has come loose. b. There is no floppy disk in the drive. c. The device file has become corrupt. d. The floppy drive is seen as a character device.

D

What does the du /var command do? a. shows the users connected to the /var directory b. shows the size of all directories within the /var directory c. dumps the /var directory d. displays the amount of free space in the /var directory

D

Which of the following commands can be used to create partitions on either a MBR or GPT hard disk? a. gdisk b. cfsck c. fdisk d. parted

D

You plug 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? a. /dev/sda1 b. /dev/sda2 c. /dev/sdb1 d. /dev/sdc1

D

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

FALSE

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

TRUE

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?

True


Ensembles d'études connexes

Astronomy final exam review: learning questions and quiz questions

View Set

Small Business Management Chapter 5

View Set

ARE 5.0 - Construction & Evaluation - Questions

View Set

Chapter 12_Manegerial Accounting

View Set

Insurance Department and Commissioner

View Set

Chapter 28 - EMT Training - Face and Neck Injuries

View Set

Examen Informática II Preparatoria

View Set