Print
Category: Answers
Hits: 1159

LPIC 101-500

Filesystems, Filesystem Hierarchy Standard

 

  Take the test here (You need an account. It's free)

 

1.    Which option best describes the following output from the ls - la command:
irwxrwxrwx. 1 root root 35 Jul 8 2014 .fetchmailrc -> .configs/fetchmail/.fetchmailrc?
A.    It is a file called . fetchmailrc that is linked using a symbolic link.
B.    It is a file called . configs/fetchmail/. fetchmailrc that is owned by lrwxrwxrwx.
C.    It is a directory called . fetchmailrc that is owned by user Jul.
D.    It is a local directory called .configs/fetchmail/.fetchmailrc.

ANSWER: A. The listing shows a symbolic linked file located in the current directory, linked to . configs/fetchmail/.fetchmailrc. The file is owned by the root user and root group and was created on July 8, 2014.


2.    Assuming that a USB disk contains a single partition and is made available on /dev/sdb, which command mounts the disk in /media/usb?
A.    mount /dev/sdb1 /media/usb
B.    usbconnect /dev/sdb0 /media/usb
C.    mount /dev/sdb0 /media/usb
D.    usbmount /dev/sdb1 /media/usb

 A. The mount command is used to mount drives in Linux. The source and destination mount points are expected as arguments. Drive partitions begin at the number 1, making the first partition number 1.


3.    Which option within a partition-mounting command will cause the partition to be mounted in such a way as to prevent execution of programs?
A.    execless
B.    stoprun
C.    noexec
D.    norun

 C. The noexec option will prevent programs from being executed that reside on the partition. The noexec option is used frequently for mounting the /tmp partition.


4.    When working with partitions on disk, you see the type 0x82. Which type of partition is this?
A.    Linux
B.    Linux swap
C.    NTFS
D.    FAT

 B. 0x82 is Linux swap, and 0x83 is Linux. NTFS is 0x07, and FAT is 0.0c.


5.    Which partition type should be created for a Linux system, non- swap partition?
A.    82
B.    83
C.    84
D.    L

 B. The partition type 0x83 should be created for a normal Linux partition. Type 82 is used for swap; 84 is an OS/2 partition. There is no L type.


6.    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?
A.    which
B.    what
C.    whatis
D.    when

 A. The which command returns the full path to the given command and is useful for determining both whether a given command is available and the location from which the command will run.


7.    Which of the following commands will correctly change the group ownership of the file called a.out to users?
A.    chgrp users a.out
B.    chgrp a.out users
C.    groupchg a.out users
D.    grpchg users a.out

 A. The chgrp command can be used to change group ownership of a file. The order is chgrp <groupname> <target>.


8.    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 is, you see that it appears to be a normal file. What is the likely cause of such a scenario?
A.    The file was executed after edit.
B.    The administrator copied the file to yours.
C.    Your file is a hard link to the original.
D.    The file has been restored from backup.

 C. The file is almost certainly a hard link to the original script. Although is won’t show this information, the stat command will show that it is a link and also show the inode to which the file is linked.


9.    Which of the following commands shows the usage of inodes across all filesystems?
A.    df -i
B.    ls -i
C.    du -i
D.   dm -i
 

A. The -i option to df produces information on inodes across all filesystems. The is -i option will produce inode listings, but only for the current directory. The -i option is invalid for du, and dm does not exist as a command.


10.    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?
A.    -o
B.    -V
C.    -y
D.    -f

 C. The -y option will attempt to repair automatically, essentially answering y or yes instead of prompting. Of the other options, only -V is valid and will produce verbose output.


11.    Which of the following describes a primary difference between ext2 and ext3 filesystems?
A.    ext3 was primarily a bug fix update to ext2,
B.    ext3 includes journaling for the filesystem.
C.    ext3 completely changed the tools needed for management of the disks.
D.    ext3 filesystems have no significant differences.

 B. The addition of journaling in ext3 increased filesystem reliability and performance.


12.    Which option to umask will display the permissions to be used in a Portable Operating System Interface (POSIX) format?
A.    -P
B.    -p
C.    -s
D.    -v

 C. The -s option displays output in a format such as u=rwx, g=rx, o=rx, The other options listed do not perform the desired operation.


13.    Which option to in creates a symlink to another file?
A.    -si
B.    -s
C.    -l
D.    -in

 B. The -s option to in creates a symbolic link, or symlink.


14.    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?
A.    whatis
B.    find
C.    whereis
D.    ls

 C. The whereis command displays pertinent information about the command given as its argument. For example, entering whereis apache2 on a Debian system will show the binary location, configuration file location, and other relevant details.


15.    Which option in /etc/updatedb.conf will remove a path from inclusion in the results?
A.    PRUNEPATHS
B.    EXCLUDEPATHS
C.    INCLUDEEXCLUDE
D.    SEPARATEPATH

 A. The PRUNEPATHS option accepts a space-separated list of paths to remove from the results. The other options listed do not exist.


16.    According to the filesystem hierarchy standard (FHS), what is the correct location for site-specific data for a server?
A.    /etc
B.    /var
C.    /tmp
D.    /srv

 D. The /srv hierarchy is used for data for server programs. The /etc hierarchy is configuration information; /var is also data files but variable, such as mail files. The /tmp directory is for temporary files.


17.    Which of the following commands enables the sticky bit for a user on a file called homescript.sh?
A.    chmod +sticky homescript.sh
B.    chmod 755 homescript.sh
C.    chmod u+s homescript.sh
D.    chown u+sticky homescript.sh

 C. The chmod command is used for this purpose, and the u+s option sets the sticky bit for the user on the specified target.


18.    Which option to the mount command will mount all filesystems that are currently available in /etc/fstab?
A.    -g
B.    -a
C.    -r
D.    -y

 B. The -a option mounts all filesystems in /etc/fstab that are currently available. This option is typically used if the mount points are not mounted at boot time or another mount point is added to the system after it has been booted.


19.    Which command is used to format a swap partition?
A.    fdisk
B.    mkswap
C.    formatswap
D.    format -s

 B. The mkswap command formats a swap partition. The fdisk command is used to create the partition itself but not format it. The other two options do not exist.


20.    Which command and option is used to display the number of times that a filesystem has been mounted?
A.    tune2fs -l
B.    cat /etc/fstab
C.    mount -a
D.    less /etc/fsmnt

 A. The tune2fs command displays a lot of information about filesystems, and when used with the -1 option, the output includes the number of times that the filesystem has been mounted.


21.    Which option to xfs_metadump displays a progress indicator?
A.    -g
B.    -p
C.    -f
D.    -v

 A. The -g option displays progress of the dump. The other options listed do not exist.


22.    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?
A.    du
B.    df
C.    ls
D.    locate

 A. The du command will report on disk usage in a recursive manner, unlike the other commands shown here.


23.    Which file contains information about the filesystems to mount, their partitions, and the options that should be used to mount them?
A.    /etc/filesystems
B.    /etc/mounts
C.    /etc/fstab
D.    /srv/mounts

 C. The /etc/fstab file is used to store information about the filesystems to mount within the system.


24.    According to the FHS, what is the proper mount point for removable media?
A.    /etc
B.    /srv
C.    /tmp
D.   /media

 D. The /media mount point is used for removable media.


25.    Which file contains information on currently mounted filesystems, including their mount options?
A.    /etc/mtab
B.    /etc/fstab
C.    /tmp/files
D.    /etc/filesystems

 A. The /etc/mtab file contains currently mounted filesystems. Note that /etc/fstab contains filesystem information but doesn’t report which filesystems are currently mounted.


26.    Which option to umount will cause the command to attempt to remount the filesystem in read-only mode if the unmounting process fails?
A.    -o
B.    -r
C.    -f
D.    -v

 B. The -r option causes umount to attempt to remount in read-only mode. The -v option is verbose mode, and the -f option forces the operation. The -o option does not exist.


27.    The umask reports as 022. What is the permission that will be in effect for a newly nonexecutable created file?
A.    u+rw, g+r, w+r
B.    755
C.    022
D.    a+r

     A. The 022 umask will translate into 644 permissions on a new nonexecutable file.


28.    The locate command is reporting out-of-date information. Which command should be run in order to have the locate command update its database?
A.    locatedb -u
B.    locate -u
C.    updatedb
D.    updatelocate

     C. The updatedb command will update the database used by the locate command.


29.    Which shell built-in command can be used to determine what command will be run?
A.    type
B.    when
C.    find
D.    help

 A. The type built-in returns the location that the shell will use in order to run the given command. The find command cannot be used for this purpose, and the other commands do not exist.


30.    Which option to chown recursively changes the ownership?
A.    -f
B.    -R
C.    -a
D.    -m

 B. The -R option will perform the change ownership in a recursive manner.


31.    Which of the following represents the correct format for the /etc/fstab file?
A.     <directory> <device> <type> <options>
B.     <device> <type> <options>
C.     <device> <type> <options> <directory> <dump> <fsck>
D.    <filesystem> <mount point> <type> <options> <dump> <pass>

 D. The proper order is the device (UUID or partition) or filesystem to mount, followed by the mount point or directory to mount that device, followed by its type and options, and then the dump and pass settings.


32.    Which of the following commands is used to identify the UUID for partitions?
A.    blkid
B.    ls
C.    find
D.    cat

 A. The blkid command will show partition UUIDs. You can also get this information with the lsblk -no UUID <partition> command. The other commands shown in this question do not accomplish the required task.


33.    Which of the following describes the priority order for configuration files with systemd?
A.    Files in /etc/, files in /run, and then files in /lib
B.    Files in /run, files in /etc/, and then files in /lib
C.    Files in /lib, files in /run, and then files in /etc
D.    Files in /lib, files in /etc, and then files in /run

 A. Priority order for systemd configuration files are those within the /etc/hierarchy, followed by files in the /run/hierarchy, followed by files in the /lib/ hierarchy.


34.    Which options to the fsck command will find and automatically assume that it should repair errors that it finds?
A.    -y
B.    -vy
C.    -my
D.    -xy

 A. The -y option causes fsck to assume yes instead of prompting when repairing a filesystem. The -v option is verbosity. There is no -m or -x option for fsck.


35.    Which option to mke2fs sets the type of filesystem to be created?
A.    -F
B.    -a
C.    -t
D.    -e

 C. The -t option sets the filesystem type as ext2, ext3, or ext4. The mke2fs command is typically symlinked from /sbin/mkfs. ext2, /sbin/mkfs. ext3, and /sbin/mkfs. ext4. The -F option forces mke2fs to create a filesystem, and the -a and -e options do not exist.


36.    Which of the following files is the default configuration file for the autofs automounter?
A.    /etc/autofs
B.    /etc/auto.master
C.    /etc/autofs.conf
D.    /etc/automounter.conf

 B. The file /etc/auto.master contains the configuration for autofs. The other files listed as options are not valid for this scenario.


37.    Which of the following commands is used to create an ISO filesystem?
A.    mkiso
B.    mkfsiso
C.    mkisofs
D.    isofs-mk

 C. The mkisofs command creates an ISO filesystem, which can then be written to a CD or DVD. The other commands listed are not valid.


38.    Which option to the tune2fs command sets the maximum mount count before the system will automatically run fsck on the partition on boot?
A.    -b
B.    -c
C.    -c
D.    -a

 B. The -c option sets the maximum mount count. The -c option sets the current number of mounts. The -b and -a options do not exist.


39.    Which option to the mount command can be used to simulate the mount process without actually mounting the filesystem?
A.    -q
B.    -v
C.    -l
D.    -f

D. The -f option, also known as fake, is helpful for situations where you need to debug the mount process or when you need to add an entry to /etc/mtab for a previously mounted filesystem. The -l option shows labels, and -v is verbose. There is no -q option.
 
40.    When viewing /proc/mounts, you see a filesystem with the letters ro in the fourth column. To what do the letters ro refer?
A.    relative option
B.    realtime option
C.    read-only
D.    relative-only

 C. The letters ro indicate that the filesystem has been mounted read-only, meaning that it is not possible to perform a write to the filesystem. The other possible option is rw, indicating that the filesystem has been mounted read-write.


41.    Which option to dumpe2fs displays the bad blocks for a given partition?
A.    -bb
B.    -c
C.    -b
D.    -f

 C. Bad blocks are shown with the - b option. The -f option forces dumpe2fs to perform the requested operation, and the other command options do not exist.


42.    Which of the following filesystem types features copy-on-write?
A.    ext3
B.    ext4
C.    FAT
D.    Btrfs

 D. Btrfs is based on the copy-on-write principle and is generally considered more advanced than ext4 and its predecessors. FAT is a legacy filesystem primarily used for DOS and its follow-ons like Windows.


43.    Which of the following commands displays filesystem geometry for an XFS filesystem?
A.    xfsinfo
B.    xfs_info
C.    xfs-info
D.    xfs -info

 B. The xfs_info command, which is functionally equivalent to xfs_grow -n, displays information about an XFS-formatted filesystem.


44.    Which of the following commands can be used to display information such as the UUID for partitions on a system?
A.    blkid
B.    blockdev
C.    devinfo
D.    uuidinfo

     A. The blkid command shows information about partitions including their type, their UUID, and other basic information. The other commands shown do not exist.


45.    Which option to the umount command will cause it to unmount only filesystems of the specified type?
A.    -v
B.    -f
C.    -t
D.    -a

 C. The -t option, which can accept a comma-separated list of types, specifies that only filesystems of the listed type are to be unmounted. This is useful in conjunction with the -a option, which unmounts all filesystems except /proc. The -v option is verbose, and -f forces the operation to continue.


46.    Which command causes unwritten data to be written to disk immediately?
A.    write
B.    wrnow
C.    connwrite
D.    sync

 D. The sync command writes unwritten data to the disk immediately and is useful to run just prior to attempting an unmount operation.


47.    Which option to xfs_check is used to verify a filesystem that is stored in a file?
A.    -v
B.    -a
C.    -f
D.    -d

 C. The -f option specifies that xfs_check should check the  contents of the named file for consistency. The -v option sets verbosity, and there is no -d or -a option.


48.    Which option to debugfs causes the filesystem to be opened in read-write mode rather than the default read-only?
A.    -rw
B.    -w
C.    -r
D.    -n

 B. The -w option causes debugfs to open the filesystem in read-write mode. There is also a -c option to open in catastrophic mode for filesystems with significant damage. The -rw, -r, and -n options are not valid.


49.    Which daemon is responsible for monitoring Self-Monitoring, Analysis, and Reporting Technology (SMART)-compatible hard drives?
A.    smartmon
B.    smarty
C.    sartd
D.    smartd

 D. The smartd daemon monitors SMART-compatible disks for notable events and can be configured to send alerts when events occur. The other commands listed are not valid for this scenario.


50.    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?
A.    -f
B.    -m
C.    -a
D.    -c

 A. The -f option forces fsck to run on an otherwise clean filesystem for ext3 filesystems. This can be helpful for times when you suspect there is an error on the filesystem and need to verify the integrity of the filesystem as part of the troubleshooting process. This can also be helpful to prepare the filesystem for conversion, such as might be the case with a tool like bt rfs - convert.


51.    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?
A.    -b    4M
B.    -g    1M
C.    -i    1M
D.    -k    1028K

 A. The block size for import or restore must match the block size used on export or dump. Block size is specified with the -b option, making option A correct. The other options are not valid for xfsrestore.


52.    You see the word defaults within /etc/fstab. Which options are encompassed within the defaults?
A.    ro, exec, auto
B.    rw, suid, dev, exec, auto, nouser, async
C.    rw, exec, auto, nouser, async
D.    rw, exec, nouser, async, noauto, suid

 B. A filesystem with the word defaults for its mount options will be mounted read-write (rw), suid, with the ability to have executables (exec). The filesystem will be auto-mounted (auto), but users will not be able to mount it (nouser). Character and block special devices will be interpreted (dev), and operations on the disk will be performed in an asynchronous manner (async).


53.    Which of the following commands creates a btrfs subvolume?
A.    btrfs create subvolume
B.    btrfs subvolume create
C.    btrfs sv create
D.    btrfs svcreate

 B. The btrfs subvolume create command creates a btrfs subvolume. The other commands are not valid.


54.    Which of the following options to xfsdump sets the maximum size for files to be included in the dump?
A.    -p
B.    -s
C.    -z
D.    -b

 C. The -z option sets the maximum size for files to be included in the dump. The -b option sets the block size but is not related to what is being asked for in this scenario. The -s option sets the path for inclusion in the dump, and -p sets the interval for progress indicators.


55.    Which option to the tune2fs command sets the behavior when a filesystem error occurs?
A.    -f
B.    -d
C.    -e
D.    -k

 C. The -e option sets the behavior, such as continue, remount read-only, or panic, when an error occurs at the filesystem level. The -f option forces whatever operation you’re requesting to continue even if there are errors. The -d and -k options are not valid.


56.    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?
A.    -a
B.    -m
C.    -b
D.    -n

 D. The -n option causes mount to not write to /etc/mtab and is particularly useful for the scenario described. The -a option mounts all filesystems in /etc/fstab. There is no -b or -a option.


57.    Which of the following commands deactivates swap space?
A.    swapoff
B.    swap -off
C.    unmountswap
D.    uswap

 A. The swapoff command deactivates swap space, thereby making it unavailable as virtual memory on the system. The other commands shown as options are not valid.


58.    Within the [mount] section of a systemd mount unit, which directive specifies the location for mounting the chosen filesystem?
A.    Where=
B.    Location=
C.    List=
D.    Dest=

 A. The Where= directive specifies the location for the final mounted filesystem.


59.    Which of the following commands can be used to format a FAT filesystem?
A.    mkfs.fat
B.    mkfs -f
C.    mkfs -fat
D.    mkfat

 A. The mkfs. fat or mkfs. vfat commands are valid for creation of FAT filesystems. There is no -f option to mkfs, and there is no mkfat command.


60.    Which of the following commands adds a Journal to an existing ext2 filesystem?
A.    tune2fs -jrn
B.    e2fs -x
C.    tune3fs
D.    tune2fs -j

 D. The tune2fs command is used for working with ext2, ext3, and ext4 filesystems. The -j option adds a Journal. The other commands are not valid.


61.    Which of the following commands creates a snapshot of a btrfs subvolume?
A.    btrfs subvolume snapshot
B.    btrfs snapshot -create
C.    btrfs create snapshot
D.    btrfs -create

 A. The snapshot subcommand of btrfs subvoiume creates a snapshot. The other commands shown are not valid.


62.    Which option to xfs_repair will force log zeroing even if there may be metadata within the log?
A.    -L
B.    -v
C.    -d
D.    -V

 A. The -L option forces the log to be cleared or zeroed out, which may cause a loss of data. The -v option sets verbose output; -v prints the version. The -d option performs a dangerous repair, which can be used on a read-only filesystem.


63.    Which of the following commands mounts a filesystem in read-only mode?
A.    mount read-only
B.    mount -read
C.    mount -o ro
D.    mount -or

 C. The -o option enables the setting of one or more options for the mount command, and ro is read-only. Note that the -r option will also mount as read-only. The other options shown are not valid.


64.    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?
A.    -extend
B.    -E
C.    -e
D.    -f

 B. The -E option signals that an extended option follows, such as stripe_width. The -f option forces an operation but should not be necessary for this solution, and the -e option sets the behavior on error. There is no -extend option.


65.    Which utility is used for formatting GPT disks?
A. gdisk
B.    gptdisk
C.    gpdisk
D.    pgdisk

 A. The gdisk utility is the equivalent of fdisk for working with GPT partitions. Later versions of fdisk can also be used to manage GPT partitions.


66.    What is the maximum size of a partition on an MBR-formatted disk?
A.    2TB
B.    4TB
C.    2MB
D.    512TB

 A. The maximum size for a partition on an MBR disk is 2 terabytes. GPT has largely replaced MBR on newer Linux systems.


67.    Which option to mkfs. ext4 can be used to prevent reservation of blocks for system or superuser use?
A.    -r 0
B.    -r 0b
C.    -m 0
D.    -m 0b

 C. The -m option with 0 will format the partition with no reserved blocks for superuser or system use. The -r option sets the filesystem revision.


68.    What is the default time in seconds that xfs_fsr will use to reorganize a filesystem?
A.    3600
B.    7200
C.    86400
D.    5150

 B. The default time for filesystem reorganization is two hours, or 7200 seconds.


69.    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.
A.    Grant root access to the user.
B.    Run chmod 777 on the file.
C.    Use chgrp to change group ownership to admins.
D.    Use chown to change the ownership of the file to the individual user.

C. The file permissions are 640, meaning that the group owner can read the file. Therefore, changing group ownership should have the fewest side effects. Granting root access is not preferred, especially noting that the problem statement indicated that granting sudo wasn’t preferred. While using chown on the file to change the owner would also work, it’s likely to have additional side effects that could prevent the owner of the file from reading and writing, and there isn’t enough information in the problem for that. Finally, running chmod 777 is almost never the correct solution to any problem on Linux.
 
70.    Which option to isblk shows empty devices?
A.    -g
B.    -a
C.    -r
D.    -y

 B. The -a option shows all devices, even those that are empty. The -r option is for raw devices, and the other options do not exist.


71.    The /media/ mount point is used frequently for which types of devices?
A.    Hard drives
B.    SAN
C.    NAS
D.    USB devices

 D. USB devices and others removable media can typically be found within the /media/ mount point.


72.    Which of the following commands is used to format an exFAT filesystem?
A.    mkexfat
B.    mkfat.ex
C.    mkfs.exfat
D.    mkfs2.exf

 C. The mkfs-related commands are typically used for formatting filesystems on Linux. In this case, mkfs.exfat is the correct option for formatting exFAT filesystems.


73.    Which of the following commands is used for debugging an XFS- formatted filesystem?
A.    debug_xfs
B.    xfs_debug
C.    xfs_db
D.    debugxfs

 C. The xfs_db command is used for debugging XFS-formatted filesystems.


74.    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?
A.    -B
B.    -s
C.    -b
D.    -o

 C. The -b option is used to specify an alternate superblock and helps in the scenario described, where the superblock has been damaged. The -B option specifies the block size. There is no -s or -o option for e2fsck.


75.    Which option to df shows the numerical output in larger size increments, like MB, GB, TB, and so on rather than in bytes?
A.    -h
B.    -m
C.    -n
D.    -s

 A. The -h option is the flag for human-readable formatting and shows numerical output in larger size increments rather than bytes. The other options are not valid for df.


76.    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?
A.    /etc/umask.def
B.    /etc/profile
C.    /etc/bash.d/umask
D.    /etc/bash.umask

 B. The /etc/profile file is one of a few locations in which default options can be set for users of Bash. The other file locations shown do not exist.


77.    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?
A.    A symbolic link is not appropriate because the users cannot keep their own changes. A copy would be a better option.
B.    A symbolic link is appropriate here because each user can access the file, assuming write permissions.
C.    A symbolic link is not appropriate given that the users will not have permissions on symbolic links. Linux cannot meet the scenario described.
D.    A symbolic link is appropriate because symbolic links have the ability to do version control, thus enabling the scenario.

     A. A symbolic link will not work. The users would be editing the same file and, without saving as a different filename, would not be able to keep their own edits.


78.    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?
A.    locate
B.    find -uid
C.    find -user
D.    fileloc -user <user>

 B. The find command will be used for this purpose, and the -uid option will need to be used because the user has already been deleted. If the user had not been deleted, then the -user option would still work.


79.    You need to update the locate database. Which of the following  commands is used for this purpose?
A.    updatedb
B.    locatedb
C.    updlocdb
D.    locdbupd

 A. The updatedb command is used to update the locate database.  The other commands are not valid.


80.    Which option to isblk shows the UUID of each filesystem?
A.    -u
B.    -f
C.    -o
D.    -a

 B. The -f option shows the UUIDs of the filesystems mounted on the system. The -a option shows all devices, the -o option enables specification of output columns, and the -u option does not exist.


81.    Which option to mkswap checks the device for bad blocks before formatting?
A.    -b
B.    -B
C.    -c
D.    -d

 81.    C. The -c option checks for bad blocks before formatting. The other options are not valid with mkswap.


82.    You are examining output from is -la and one file contains the permissions -rwSrw-r-. To what does the s refer?
A.    Specific execute
B.    Source formatting
C.    Selective execution
D.    Sticky bit

 D. The sticky bit has been set on the file as denoted by an uppercase s.


83.    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?
A.    chmod 2775 sync.sh
B.    chmod u+s sync.sh
C.    chmod 2755 sync.sh
D.    chmod 4755 sync.sh

 C. Using octal form, 4 is user, 2 is group, and 1 is sticky bit. Therefore, 2755 would have setgid for the file.


84.    Which of the following commands finds files with a . sqi extension across the entire filesystem?
A.    find . -name "*.sql"
B.    find /root -ext sql
C.    find / -name "*.sql"
D.    find / -exten ".sql"

 C. The -name option is used for this purpose, and / indicates the root of the system. A * wildcard is used to indicate all filenames ending in .sql, as described in the scenario.


85.    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>?
A.    <UUID>
B.    UUID=<UUID>
C.    ID=<UUID>
D.    GPT=<UUID>

 B. The UUID=<UUID> syntax is correct for the /etc/fstab file.


86.    Which option to du displays information on inode usage?
A.    -i
B.    -h
C.    -inodes
D.    -d

 C. The -inodes option shows inode usage with du. The -h option is human-readable, and -d sets the maximum depth. There is no -i option for du.


87.    Which of the following find commands will look for files that are over 1GB in size?
A.    find -size +1G
B.    find -size 1GB
C.    find -fssize +1GB
D.    find -filesize +1G

 A. The -size option is used with find for this purpose, and the +1G argument will look for files greater than 1 gigabyte. Note that if the + is omitted, only files of the exact size are found.


88.    You have a set of libraries that were installed into /usr/iocai/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?
A.    Copy the libraries.
B.    Create a symbolic link.
C.    Move the libraries.
D.    Create a script to synchronize the libraries between the two locations with rsync.

 B. A symbolic link is the preferred method because it does not require additional maintenance that a script would or that copying would in order to keep the libraries current. Moving the libraries may have unintended consequences if another program is dependent on the libraries in that location.