THE FOLLOWING EXAM OBJECTIVES ARE COVERED IN THIS CHAPTER:
Which option best describes the following output from the ls -la command: lrwxrwxrwx. 1 root root 35 Jul 8 2014 .fetchmailrc -> .configs/fetchmail/.fetchmailrc?
Assuming that a USB disk contains a single partition and is made available on /dev/sdb, which command mounts the disk in /media/usb? Which option within a partition-mounting command will cause the partition to be mounted in such a way as to prevent execution of programs? When working with partitions on disk, you see the type 0x82. Which type of partition is this? Which partition type should be created for a Linux system, non-swap partition? Which command can be used to determine the location of a given executable that would be run if typed from your current environment and location? Which of the following commands will correctly change the group ownership of the file called a.out to users? Another administrator made a change to one of the local scripts used for administrative purposes. The change was also immediately reflected in your copy of the script. However, when examining the file with ls, you see that it appears to be a normal file. What is the likely cause of such a scenario? Which of the following commands shows the usage of inodes across all filesystems? You’re running fsck on an ext3 filesystem, and the process is taking longer than expected and requiring input from the administrator to fix issues. What option could be added to fsck next time so that the command will automatically attempt to fix errors without intervention? Which of the following describes a primary difference between ext2 and ext3 filesystems? Which option to umask will display the permissions to be used in a Portable Operating System Interface (POSIX) format? Which option to ln creates a symlink to another file? Which of the following commands can be used if you need to locate various elements of a given command, such as its binaries and man pages? Which option in /etc/updatedb.conf will remove a path from inclusion in the results? According to the filesystem hierarchy standard (FHS), what is the correct location for site-specific data for a server? Which of the following commands enables the sticky bit for a user on a file called homescript.sh? Which option to the mount command will mount all filesystems that are currently available in /etc/fstab? Which command is used to format a swap partition? Which command and option is used to display the number of times that a filesystem has been mounted? Which option to xfs_metadump displays a progress indicator? The system is running out of disk space within the home directory partition and quotas have not been enabled. Which command can you use to determine the directories that might contain large files? Which file contains information about the filesystems to mount, their partitions, and the options that should be used to mount them? According to the FHS, what is the proper mount point for removable media? Which file contains information on currently mounted filesystems, including their mount options? Which option to umount will cause the command to attempt to remount the filesystem in read-only mode if the unmounting process fails? The umask reports as 022. What is the permission that will be in effect for a newly nonexecutable created file? The locate command is reporting out-of-date information. Which command should be run in order to have the locate command update its database? Which shell built-in command can be used to determine what command will be run? Which option to chown recursively changes the ownership? Which of the following represents the correct format for the /etc/fstab file? Which of the following commands is used to identify the UUID for partitions? Which of the following describes the priority order for configuration files with systemd? Which options to the fsck command will find and automatically assume that it should repair errors that it finds? Which option to mke2fs sets the type of filesystem to be created? Which of the following files is the default configuration file for the autofs automounter? Which of the following commands is used to create an ISO filesystem? Which option to the tune2fs command sets the maximum mount count before the system will automatically run fsck on the partition on boot? Which option to the mount command can be used to simulate the mount process without actually mounting the filesystem? When viewing /proc/mounts, you see a filesystem with the letters ro in the fourth column. To what do the letters ro refer? Which option to dumpe2fs displays the bad blocks for a given partition? Which of the following filesystem types features copy-on-write? Which of the following commands displays filesystem geometry for an XFS filesystem? Which of the following commands can be used to display information such as the UUID for partitions on a system? Which option to the umount command will cause it to unmount only filesystems of the specified type? Which command causes unwritten data to be written to disk immediately? Which option to xfs_check is used to verify a filesystem that is stored in a file? Which option to debugfs causes the filesystem to be opened in read-write mode rather than the default read-only? Which daemon is responsible for monitoring Self-Monitoring, Analysis, and Reporting Technology (SMART)-compatible hard drives? When checking an ext3 filesystem, which option to the fsck.ext3 command causes it to run the check even if the filesystem is apparently marked as clean? You are performing an xfsrestore. The xfsdump was executed with a block size of 4MB. Which option do you need to invoke on xfsrestore in order for it to successfully use this dump? You see the word defaults within /etc/fstab. Which options are encompassed within the defaults? Which of the following commands creates a btrfs subvolume? Which of the following options to xfsdump sets the maximum size for files to be included in the dump? Which option to the tune2fs command sets the behavior when a filesystem error occurs? The /etc filesystem has been mounted as a read-only for a recovery process. You need to mount another partition. Which option to the mount command causes it to not write to /etc/mtab? Which of the following commands deactivates swap space? Within the [mount] section of a systemd mount unit, which directive specifies the location for mounting the chosen filesystem? Which of the following commands can be used to format a FAT filesystem? Which of the following commands adds a journal to an existing ext2 filesystem? Which of the following commands creates a snapshot of a btrfs subvolume? Which option to xfs_repair will force log zeroing even if there may be metadata within the log? Which of the following commands mounts a filesystem in read-only mode? When you are using tune2fs to set an extended option such as stripe_width, which command-line option is needed to signify that an extended option follows? Which utility is used for formatting GPT disks? What is the maximum size of a partition on an MBR-formatted disk? Which option to mkfs.ext4 can be used to prevent reservation of blocks for system or superuser use? What is the default time in seconds that xfs_fsr will use to reorganize a filesystem? A user who is a member of the custom admins group is attempting to read the contents of a file but is not the owner of the file. Rather than granting sudo access to this file, what is another way to grant read access, assuming that the file is currently marked with 640 permissions? Note that you should choose the most appropriate answer to fulfill the need while minimizing additional privileges. Which option to lsblk shows empty devices? The /media/ mount point is used frequently for which types of devices? Which of the following commands is used to format an exFAT filesystem? Which of the following commands is used for debugging an XFS-formatted filesystem? You’re working with an ext2 filesystem and you suspect the superblock is corrupted. Which option to e2fsck enables you to specify the location of an alternate superblock? Which option to df shows the numerical output in larger size increments, like MB, GB, TB, and so on rather than in bytes? Assuming the use of Bash for the shell, in which file can the umask be set such that the file creation mask is set automatically on login? You need to enable two users to edit the same file but keep their own individual changes. Another administrator suggested making a symbolic link for the file. Is a symbolic link the appropriate solution for this scenario and, if not, what is? You have deleted a user from the system and want to determine if this user still has files on the system. Which command will fulfill this scenario? You need to update the locate database. Which of the following commands is used for this purpose? Which option to lsblk shows the UUID of each filesystem? Which option to mkswap checks the device for bad blocks before formatting? You are examining output from ls -la and one file contains the permissions -rwSrw-r--. To what does the S refer? You need to change file permissions to be setgid for a file called sync.sh. The file is normally permission 755. Which of the following commands accomplishes this task? Which of the following commands finds files with a .sql extension across the entire filesystem? When working with /etc/fstab to mount by UUID, which syntax is correct as the first column in /etc/fstab, assuming a UUID denoted by <UUID>? Which option to du displays information on inode usage? Which of the following find commands will look for files that are over 1GB in size? You have a set of libraries that were installed into /usr/local/lib and would like to ensure that the libraries are also available in /usr/lib. What is the preferred way to make the libraries available in this location?