LabSim TestOut Linux Pro - Ch. 8
PQ 8.8.12 MC Which of the following repquota options will give you quota limits and disk usage for all file systems listed in /etc/mtab?
-a
PQ 8.7.6 MC You are inspecting the superblocks and block information on your file system. You need dumpe2fs to display only the blocks that are reserved as bad in the file system. Which of the following options should you use?
-b
PQ 8.7.6 MC Your ext3 file system has experienced a significant amount of corruption. To examine the file system, you want to use the debugfs utility. Which of the following debugfs options should you use to examine the file system?
-c
PQ 8.2.6 T What is the file path and name of the directory that contains device files for hard drives, optical drives, and USB devices?
/dev
PQ 8.6.5 MC You need to configure your Linux system to allow only the root user account to mount the CD-ROM device. Which of the following options should you add to the /etc/fstab file?
/dev/cdrom /media/cdrom -t iso9660 ro,nouser,noauto
PQ 8.2.6 T Enter the full device file name for the second partition on the hard drive with the lowest ID number.
/dev/sda2
PQ 8.2.6 T Type the full device file name for the first partition on the hard drive with the third lowest ID number.
/dev/sdc1
PQ 8.8.12 T You need to implement disk quotas on your Linux system for the / directory. What is the full path and name of the file that must be edited to implement quotas for users and groups?
/etc/fstab
PQ 8.6.5 MC What file shows the currently mounted volumes?
/etc/mtab
PQ 8.6.5 MC Which of the following directories is specified by Filesystem Hierarchy Standard (FHS) as a mount point for removable media, such as USB storage media, DVDs, and CD-ROMs?
/media
PQ 8.1.6 MC You have just inserted a thumb drive into your Linux server and now want to view the contents of the thumb drive. Where is the MOST likely place you can find the mounted thumb drive in the Linux file system?
/run/media/<username>
PQ 8.2.6 MC Which of the following hexadecimal codes represents an extended partition?
0x85
PQ 8.3.5 MC Which of the following is the maximum number of GUID partitions that can be created using the gdisk utility?
128
PQ 8.2.6 MC Which of the following is the maximum number of primary partitions that can be created on a single hard disk drive?
4
PQ 8.1.6 MC Which of the following MOST accurately describes Redundant Array of Independent Disks (RAID)?
A disk subsystem that combines multiple physical disks into a single logical storage unit.
PQ 8.8.12 MC Which of the following statements best describes the function of the repquota /home -vu command?
A summary of disk usage and quotas is displayed for the users who have files within /home.
PQ 8.3.5 MC Gloria, a Linux administrator, used the gdisk utility to create eight partitions on a new hard drive. Which of the following BEST describes the partitions Gloria has created?
All eight partitions are the same. They are simply partitions. There are no primary, extended, or logical partitions.
PQ 8.2.6 MC As a Linux administrator, you have installed a new hard disk. You create two primary partitions, sdb1 and sdb2, and one extended partition, sdb3. You format sdb1 with ext3 and sdb2 as a swap area. When you attempt to format sdb3 as a swap area, you are unable to do so. Which of the following explains why you can't format sdb3?
An extended partition can't be formatted.
PQ 8.7.6 MC You are asked to help a user complaining that file system errors are being reported during boot-up. When you reboot the user's system, you see errors on sda2. Which of the following strategies will check the file system on sda2 and fix the errors?
Change to single-user mode and run fsck /dev/sda2.
PQ 8.7.6 MC Which of the following describes the effects of using the tune2fs -j /dev/sdb1 command?
Converts the /dev/sdb1 device to ext3.
PQ 8.4.5 MC Which of the following steps must be completed after creating a logical volume so that the logical volume can be used to store files?
Create file systems on the volumes and mount them.
PQ 8.3.5 MT Once you enter the gdisk utility, you can enter several options to perform specific partitioning tasks. Drag a gdisk option on the left to its correct task description on the right.
Creates a new GUID partiton table. o Deletes a partition. d Writes changes to the partition table. w Displays detailed partition information. i Changes a partition's type code. t Changes a partition's name. c Adds a new partition. n
PQ 8.7.6 MC Which of the following I/O schedulers uses the I/O request time stamp to push I/O requests that have reached their deadline to the highest priority for processing?
Deadline
PQ 8.6.5 MC Yesterday, you created a new swap area for your system. Today, after rebooting the system, you find that the swap area is not mounted. What should you do to ensure the swap area is mounted each time the system boots?
Edit /etc/fstab and add the swap partition.
PQ 8.1.6 MC What is the standard used by Linux distributions to determine the layout of files and folders in the Linux system?
Filesystem Hierarchy Standard (FHS)
PQ 8.1.6 MC You are running the sandboxed AppImages application on your Linux system, which keeps the application from compromising your Linux filesystem by leaving kernel access to a separate kernel module. Which of the following technologies provides this type of security for the AppImages application?
Filesystem in USErspace (FUSE)
PQ 8.6.5 MC You attempt to unmount a volume using the umount /dev/sdd3 command, but you receive a device is busy error message. Which of the following strategies will be MOST likely to allow you to unmount the file system? (Select two.)
Find and close any open files on the file system, and try to unmount again. Ensure your current working directory is not on the file system, and try to unmount again.
PQ 8.5.11 MC A file system inode indicates where a file's data physically exists on a disk. What other information does an inode contain? (Select two.)
Modification, access, and creation times Permissions
PQ 8.1.6 MC Which of the following are the PRIMARY tasks you can perform with the mount command? (Select two.)
Mount a file system on a storage device somewhere in the root file system tree. List all file systems that are currently mounted.
PQ 8.1.6 MC The RAID configuration you are using to combine several hard drives into a single logical volume includes the following benefits and requirements: Provides fault tolerance for a single disk failure. Provides redundancy and performance. Uses 50% of the total raw capacity of the drives due to mirroring. Requires a minimum of four disks. What is the RAID level you are using for your logical volume?
RAID 10
PQ 8.1.6 MC You are using RAID to combine several hard disks on a Linux server into a single logical storage unit. You have configured the RAID volume to combines disk striping across multiple disks with parity for data redundancy. The parity information is stored on each disk. If a single disk fails, its data can be recovered using the parity information stored on the remaining disks. Which of the following RAID levels are you using?
RAID 5
PQ 8.1.6 MC Which of the following are types of remotely connected devices?
Storage Area Network (SAN) Network Attached Storage (NAS)
PQ 8.1.6 MC Which of the following is a requirement for ALL configurations of RAID?
The amount of disk space used on each disk must be of equal size.
PQ 8.3.5 MC When using the parted command instead of the gdisk utility, which of the following is important to remember?
The parted command writes partition changes to disk immediately.
PQ 8.2.6 MC Which of the following is the maximum number of logical partitions allowed on an extended partition?
Unlimited
PQ 8.3.5 MC Which of the following are the advantages of using GPT instead of MBR for partitioning a storage device? (Select two.)
Uses only one type of partition. Allows up to 128 partitions on a storage device.
PQ 8.5.11 T Which file system is a FAT32 file system for Linux?
VFAT
PQ 8.3.5 MC You want to change the name of a partition on the sdc storage device. You have already entered gdisk /dev/sdc to begin the editing process. Which of the following gdisk options can you enter to change the partition name?
c
PQ 8.7.6 DDL You have entered the cat /sys/block/sdb/queue/scheduler command to find out which I/O scheduler is currently being used by your Linux system. The following is displayed: noop [cfq] deadline Which I/O scheduler is currently being used by your Linux system? What I/O schedulers are available on your Linux system?
cfq noop, cfq, deadline
PQ 8.6.5 MC A user is trying to access a file system mounted at /mnt/sdb1, but receives an error that states No such file or directory. Which commands can you use to see the current mount points? (Select two.)
df mount
LAB 8.8.4 Determine Disk Free Space You are concerned that you may be getting low on disk space. You want to check and see if that assumption is correct. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable command to view the current disk space in human readable form. Answer the questions.
df -h Answer questions.
PQ 8.7.6 MC When creating an ext2 or ext3 file system, a fixed number of inodes is assigned. Which of the following commands shows the number of inodes, number of free inodes, and number of used inodes?
df -i
LAB 8.8.5 Determine the Directory Size You are logged on as Will Adams (wadams), and your working directory is /home/wadams. You need to know some information about the disk usage for Will's home directory. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable command to view the disk usage for the /home/wadams directory. Answer the questions.
du Answer questions.
PQ 8.7.6 T What command would you enter at the command prompt to list all files and directories in the badams home directory, along with file size and the total amount of space taken up by the directory?
du -ac /home/badams
PQ 8.7.6 MC Which of the following commands allows you to use an alternative superblock when the primary superblock has been corrupted?
e2fsck -b 16385 /dev/sda1
PQ 8.8.12 MC Which of the following commands will open the quota file for a specific user?
edquota -u
LAB 8.8.11 Edit Quotas 2 Users have complained that the seven-day default grace period for soft limits is too short. Complete this lab from the Terminal. In this lab, your task is to: Increase the block and file (inode) grace period for users from 7 to 30 days. Generate a quota report to confirm the changes.
edquota -u -t 1 Move cursor under Block grace and delete 7 Type 30 Move cursor under Inode grace and delete 7 Type 30 Ctrl + X y repquota -a
PQ 8.8.12 T Which command should you enter at the command prompt to change the quota settings for the gshant user?
edquota -u gshant
LAB 8.8.10 Edit Quotas 1 Sam Chan (schan) has reached his user quota limit, and he wants more space. Your manager has approved an increase in his quota limit. Complete this lab from the Terminal. In this lab, your task is to: Increase the hard and soft block limits on the schan user account to 1048576 KB (1 GB). Generate a quota report to confirm the changes.
edquota -u schan 1 Move cursor under soft and delete 9216 type 1048576 Move cursor under hard and delete 10240 Type 1048576 Ctrl + X y repquota -a
PQ 8.5.11 MC The system requirements for a new Linux computer show that the system will primarily be used to store documents of small size. Which of the following file systems would be the MOST efficient at storing these documents on a Linux system?
ext4
PQ 8.5.11 MC Which of the following Linux file systems support journaling?
ext4
PQ 8.5.11 MC Which of the following is the MOST common Linux file system?
ext4
LAB 8.2.5 View the MBR Partition Table You are thinking about adding another disk to your system. To help you make your decision, you want to view the current setup. Complete this lab from the Terminal. In this lab, your task is to: View the disk information for your system. Answer the questions.
fdisk -l Answer all questions
PQ 8.2.6 MC Which of the following commands/command sequences can you use to view the partition information on the first hard disk? (Select two.)
fdisk /dev/sda, then press p fdisk -l
PQ 8.2.6 MC Which of the following commands partitions the second hard disk on a Linux system?
fdisk /dev/sdb
PQ 8.3.5 MC Which partition management utility can be used to define and change various GUID partition configurations without committing the configuration to the disk until the w command is used?
gdisk
PQ 8.3.5 T You have installed a new blank hard drive on your Linux system. This is the second drive on the system, so it is represented in the file system by the /dev/sdb file. You need to create GUID partitions on this drive. What command do you use to start the GUID disk management utility to create partitions on the /dev/sdb drive?
gdisk /dev/sdb
LAB 8.7.4 Use iostat You suspect that one of the storage devices on your system has failed. Your need to identify which device it is. In this lab, your task is to: Find out if a device has failed.Use the appropriate command to list devices and their utilization.Answer the question.
iostat Answer the question.
LAB 8.9.6 Change Group Ownership for a File The CEO of the company wants to make sure that the employees' personal information, as stored in the /hr/personnel file, is protected. The CEO has asked that you make sure that the human resources (HR) department is the owner of that file. Complete this lab from the Terminal. In this lab, your task is to: Find the current owner of the /hr/personnel file. Answer the question. Change the group ownership of the /hr/personnel file to the hr group. Verify the ownership change.
ls -l /hr Answer questions. chgrp hr /hr/personnel chown .hr /hr/personnel chown :hr /hr/personnel ls -l /hr
LAB 8.9.5 Change File Ownership Brenda Cassini (bcassini) is taking over payroll documentation for Will Adams (wadams). In this lab, your task is to give the bcassini user ownership of the /hr/payroll file.
ls -l /hr chown bcassini /hr/payroll ls -l /hr
LAB 8.9.4 View Ownership Information You are the IT administrator for this Linux system. Your manager has asked you to verify the ownership of a few files and directories. Complete this lab from the Terminal. In this lab, your task is to: View the ownership for the /sales/orders file.Answer Question 1. View the ownership for the /projects/darkhorse file.Answer Question 2. View the ownership for the /projects directory.Answer Question 3. View the ownership for the /hr directory.Answer Question 4.
ls -l /sales/orders Answer questions. ls -l /projects/darkhorse Answer questions. ls -l / Answer questions.
LAB 8.5.9 Format a Hard Disk with ext4 You've installed a third hard drive (sdc) and created two partitions on the drive. Now you need to format both partitions. Complete this lab from the Terminal. In this lab, your task is to: Format the two partitions with the ext4 file system.
ls /dev/sd* mke2fs -t ext4 /dev/sdc1 mke2fs -t ext4 /dev/sdc2
LAB 8.4.4 Create a Logical Volume On your Linux system, you have installed a second hard drive and created one partition on the drive. You have also installed a third hard drive and created two partitions on that drive. You now want to create a logical volume using the first partition on each new drive. Complete this lab from the Terminal. In this lab, your task is to: Use pvcreate to initialize the partitions for use with LVM. Use vgcreate to create a volume group named data using these two partitions. Use lvcreate to create a 1-terabyte logical volume named art from the data volume group. Create a directory named product where you can mount the new logical volume. Format the new logical volume with ext4. Mount the logical volume to the product directory. Change to the product directory and create a file named newproduct. Verify the creation of the file and amount of disk space available on this new volume.
ls /dev/sd* pvcreate /dev/sdb1 /dev/sdc1 vgcreate data /dev/sdb1 /dev/sdc1 vgs lvcreate --size 1t -n art data mkdir product mkfs.ext4 /dev/data/art mount -t ext4 /dev/data/art product cd product touch newproduct ls df -h
LAB 8.1.5 Use lsblk You are considering adding an additional hard disk to your system. Before doing so, you need to find out what block devices are connected to your Linux system. Complete this lab from the Terminal. In this lab, your task is to: Use the appropriate tool to list the block devices on your system. Answer the questions.
lsblk Answer all questions
PQ 8.4.5 MC Which of the following commands creates a logical volume named video from the home volume group and configures it with 2 TB of disk space?
lvcreate -L 2T -n video home
PQ 8.4.5 MC Which of the following commands extends the graphics logical volume to a total of 20 Gigabytes?
lvextend -L 20G graphics
PQ 8.4.5 T You are using LVM on your Linux system to manage the existing volumes. What command do you enter to scan for logical volumes on the system?
lvscan
PQ 8.4.5 MC Which of the following utilities is used to manage and monitor software RAID devices?
mdadm
LAB 8.6.3 Mount a Volume You recently installed and formatted a new hard drive in your system. Its device file name is /dev/sdb1. Now you want to mount the volume. Complete this lab from the Terminal. In this lab, your task is to: Create the /mnt/disk directory. Mount /dev/sdb1 to the /mnt/disk directory with the ext3 file system. Use the mount command to verify that the volume is mounted correctly.
mkdir /mnt/disk mount -t ext3 /dev/sdb1 /mnt/disk mount
LAB 8.5.8 Format a Hard Disk with ext3 You've installed a new hard drive and created a partition on the drive. You now need to format the partition before you can save data on the new hard drive. Complete this lab from the Terminal. In this lab, your task is to: Format the /dev/sdb1 partition with the ext3 file system.
mke2fs -j /dev/sdb1 mkfs -t ext3 /dev/sdb1 mkfs.ext3 /dev/sdb1
PQ 8.5.11 MC Which of the following commands formats the second partition on the fourth disk drive with the ext3 file system?
mke2fs -j /dev/sdd2
PQ 8.5.11 T You need to create an ext4 file system on the first partition on the second hard disk drive. What command should you enter at the command prompt?
mkfs.ext4 /dev/sdb1
LAB 8.5.10 Create a Swap Area You recently upgraded your computer and added an extra 512 MB of RAM. Consequently, you want to increase your swap space by adding a new swap area. The second hard disk has an unused partition (/dev/sdb2) that you want to format for the swap area. Complete this lab from the Terminal. In this lab, your task is to: Create a swap partition on /dev/sdb2. Activate the swap partition.
mkswap /dev/sdb2 swapon /dev/sdb2
PQ 8.5.11 MC One of the Linux servers for the accounting department needs additional memory to fix recent performance issues. You have ordered the memory, but it is backordered, so you decide to add a swap partition to the server to help with the performance issues immediately. Which of the following commands will add a swap partition to the first partition on the third hard drive?
mkswap /dev/sdc1
PQ 8.6.5 MC A number of new file systems have been added to a Linux server and you want to activate them. You also do not want to bring the server down. What command will activate the file systems without bringing the server down?
mount -a
PQ 8.6.5 T You need to mount the CD-ROM device to the /media/cdrom directory. What command should you enter at the command prompt?
mount /dev/cdrom /media/cdrom
PQ 8.6.5 MC You have partitioned and formatted a new sdc hard drive. You want to mount the first partition on sdc to directory /mnt/newdisk. Which command will perform the mount correctly?
mount /dev/sdc1 /mnt/newdisk
PQ 8.3.5 T What is the name of the partition management utility that will create both GUID partitions and file systems on those partitions?
parted
PQ 8.3.5 MC You want to create a standard Linux partition on your new hard drive that starts at 1 GB and ends at 21 GB. Which of the following commands should you enter to create the new partition?
parted mkpart Linux 1024 21504
PQ 8.2.6 MC Marco recently made some partition changes, and the kernel is not recognizing the partitions. Which of the following commands should Marco use to resolve the problem?
partprobe
PQ 8.4.5 MC Which of the following commands initializes a physical volume?
pvcreate
PQ 8.4.5 T You have added a third hard disk to your Linux system. What command would you use to initialize a physical volume on this disk for later use by the Logical Volume Manager?
pvcreate /dev/sdc
PQ 8.4.5 T You are using LVM on your Linux system to manage hard disk partitions. What command can you enter to scan for physical volumes on the system?
pvscan
PQ 8.8.12 T What is the name of the package that must be installed if you want to use disk quotas on your Linux system?
quota
PQ 8.8.12 T Which command should you enter at the command prompt to display the current user's quota limits and disk usage?
quota
PQ 8.8.12 MC Which of the following commands displays the disk usage and quota limits for the development group?
quota -g development
LAB 8.8.6 Find the User Quota You are logged on as the root user. Will Adams (wadams) has forgotten the system quotas that you configured for him. He has asked that you remind him. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable quota command to view Will's quotas. Answer the questions.
quota -u wadams Answer questions.
PQ 8.8.12 MC Which of the following commands creates the aquota.user and aquota.group files in your file system after creating the quota entries in /etc/fstab?
quotacheck -mavug
LAB 8.8.9 Turn Quotas Off The system is running hard disk quotas for users and groups. Complete this lab from the Terminal. In this lab, your task is to: Disable the quotas on the root directory (/).
quotaoff /
LAB 8.8.8 Turn Quotas On To prevent users from using too much disk space, you have implemented hard and soft quotas on the root directory (/). Today, you noticed that the quotas are turned off. Complete this lab from the Terminal. In this lab, your task is to: Re-enable quotas for users and groups on the root directory (/).
quotaon /
PQ 8.8.12 T After creating the aquota.user and aquota.group files in the /home directory, what command should you enter to enable quotas for the /home directory?
quotaon /home
LAB 8.8.7 Generate a Quota Report You are an IT administrator for your company's Linux system. You need to generate a quota report for your supervisor regarding the quota usage for the system. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable command to generate a quota report for all filesystems. Answer the questions.
repquota -a Answer questions.
PQ 8.1.6 MC You want to save the details of the new array to a file for configuration at boot. Which of the following commands would you use?
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf
PQ 8.5.11 MC You have a Linux system with two activated swap partitions, sda3 and sdb2. Which of the following commands can you use to deactivate only the sda3 swap partition?
swapoff /dev/sda3
PQ 8.5.11 T You have created a swap area on sda3, but it is not activated. What command will activate this swap partition?
swapon /dev/sda3
PQ 8.6.5 MC Partition /dev/sdb2 is mounted to /mnt/temp. You need to unmount /dev/sdb2. Which of the following commands can you use to unmount the partition? (Select two.)
umount /dev/sdb2 umount /mnt/temp
LAB 8.6.4 Unmount a Volume The /dev/sdb2 volume is mounted to an uncommon mount point directory, /root/newdrive. You need to remove the volume from the /root/newdrive mount point and remount it to the /mnt/drive2 directory. Complete this lab from the Terminal. In this lab, your task is to: Unmount /dev/sdb2 from /root/newdrive. Mount /dev/sdb2 to /mnt/drive2. Use the mount command to verify that the volume is mounted correctly.
umount /root/newdrive mount /dev/sdb2 /mnt/drive2 mount
PQ 8.4.5 MC Which of the following commands creates a volume group named backup and initializes it by adding the third disk in a Linux system to the volume group?
vgcreate backup /dev/sdc
PQ 8.4.5 T You are using LVM on your Linux system to manage the existing volumes. After adding and initializing the fourth hard drive to the system and creating a physical volume, what command should you use to add it to the backup volume group?
vgextend backup /dev/sdd
PQ 8.7.6 MC You have an XFS file system in your Linux computer. You need to display the XFS file system parameters, such as the block size and inode data structures. Which of the following commands can you use to display the file system parameters? (Select two.)
xfs_growfs -n xfs_info