You suspect your /dev/sda3 partition is in need of repair.
Which of the following fsck options will repair the errors without any interaction from you?
-a
-t
-r
What is
-a
Use fsck -a to automatically repair the /dev/sda partition without any interaction from you (no questions appear).
Other fsck options include the following:
-s serializes fsck when multiple file systems are checked.
-t specifies the type(s) of file system to be checked.
-r prompts for confirmation when errors are found and ask permission to fix the errors (only when -a is not specified).
References
TestOut Linux Pro 5.0 - 8.6 File System Maintenance
Which file shows the currently mounted volumes?
a. /etc/mount
b. /etc/mtab
c. /etc/fstab
what is
b. /etc/mtab
Explanation
The /etc/mtab file shows the currently mounted volumes.
/etc/fstab controls which volumes are mounted at boot. /etc/mount and /etc/mount.conf are not defined by FHS to show mounted filesystems.
References
TestOut Linux Pro 5.0 - 8.5 Mounting File Systems
Which of the following Linux file systems support journaling?
a. swap
b. ext2
c. ext4
what is
c. ext4
Explanation
The ext4 file systems support journaling. Journaling is a method used to help ensure data and file system integrity and minimize boot times after system crashes.
The ext2 file system does not support journaling.
VFAT is a FAT32 file system for Linux and does not support journaling.
The swap file system is a pseudo file system and is used as virtual memory.
References
TestOut Linux Pro 5.0 - 8.4 File Systems
You need to implement disk quotas on your Linux system. You need the quotas on the / directory.
What is the full path and name of the file that must be edited to implement quotas for users and groups?
a. /etc/fs
b. /etc/fstab
c. /etc/ft
what is
a. /etc/fstab
Explanation
You must edit the /etc/fstab file to add the mount options for the file system so it can implement quotas. Add the following mount options for each applicable file system:
usrquota implements quotas for users.
grpquota implements quotas for groups.
References
TestOut Linux Pro 5.0 - 8.7 Disk Quotas
You are preparing to mount a device local to your system. Which directory holds the device files?
a. /local/dev
b. /devices
c. /dev
what is
c. /dev
Explanation
The files for devices are always stored in /dev according to the FHS.
The FHS does not define the directories /local/dev, /opt/dev or /devices for storing device files.
References
TestOut Linux Pro 5.0 - 8.5 Mounting File Systems
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?
a. -c
b. -Z
c. -f
what is
a. -c
Explanation
Use debugfs -c to specify the file system should open in catastrophic mode. debugfs is useful for file systems with significant corruption. debugfs examines and changes the state of an ext2, ext3, or ext4 filesystem. It allows administrators to unlink directories, change inode blocks, find all inodes that point to a block, and several other similar functions. Other debugfs command options include the following:
-w specifies the filesystem should open in read-write mode.
-f executes commands in a text file.
-Z prints the version number of debugfs and exits.
References
TestOut Linux Pro 5.0 - 8.6 File System Maintenance
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).
a. mount
b. mntfs
c. fsck
d. df
what is
a. mount
&
d. df
Explanation
Use the mount command with no arguments to show all the current mount points. df will also show which file systems are mounted to what points.
The command fsck is used to check file systems but does not show the mount points. There are no commands called mounts, mntchk, or mntfs.
References
TestOut Linux Pro 5.0 - 8.5 Mounting File Systems
What is the file path and name of the directory that contains device files for hard drives, optical drives, and USB devices?
a. /dev
b. /sdb
c. /root
what is
a. /dev
Explanation
The /dev directory contains device files for hard drives, optical drives, and USB devices. The /dev directory contains files for all types of devices, even those that do not exist on the system.
References
TestOut Linux Pro 5.0 - 8.1 MBR Disk Partitions
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?
a. ext4
b. ext3
c. HPFS
what is
a. ext4
Explanation
The Ext4 file system is more efficient at storing small files than most file systems.
Ext2 and Ext3 store small files less efficiently than Ext4. HPFS is more efficient for storing files than most files systems, but HPFS is not a Linux file system.
References
TestOut Linux Pro 5.0 - 8.4 File Systems
You are requested to help a user who reports that he has no more local storage space. You go to his system and log in as the root user.
Which of the following commands will display the available disk space on all partitions? (Select TWO).
a. df -h
b. du -h
c. df
what is
df -h
&
df
Explanation
df shows the size, used blocks, and available blocks for each partition. Using df -h shows the same information in bytes instead of blocks.
du is used to show the disk usage of each file in a directory in blocks; du -a is for all files, and du -h shows the usage in bytes, not blocks. Fdisk is used for partitioning a drive. There is no dskuse command.
References
TestOut Linux Pro 5.0 - 8.6 File System Maintenance
You have added several new hard disks to your system. After partitioning and formatting, you have modified a configuration file to mount these new file systems automatically. You want to document the change you made.
Which of the following configuration files would you document?
a. /etc/fstab
b. /etc/inittab
c. /etc/modules.conf
what is
a. /etc/fstab
Explanation
You want to document the changes you made in /etc/fstab.
/etc/inittab defines the initial processes on boot-up. /etc/modules.conf defines kernel loadable modules. /etc/crontab defines jobs that run at particular dates and times.
References
TestOut Linux Pro 5.0 - 8.5 Mounting File Systems
Anna, a system administrator, created a new virtual machine that she would like to provision on additional hypervisors.
Which of the following will provide a VM template that is open and can be used by hypervisors from different vendors?
a. .vmdk
b. OVF
c. XEN
what is
b. OVF
Explanation
OVF stands for Open Virtualization Format and provides an open standard to package virtual machine files for use on other systems as a template for creating a virtual machine.
.vmx is a hypervisor file format.
.vmdk is a hypervisor file that represents a disk drive.
XEN is a Type 1 hypervisor.
References
TestOut Linux Pro 5.0 - 13.2 Virtual Machines
You have created a separate partition for the sales team and mounted it to the /sales directory. The team is about to begin a new project, and they want to make sure there is enough disk space to hold upcoming files.
Which of the following commands will show you the amount of free space?
a. diff /sales
b. free /sales
c. df /sales
what is
df /sales
Explanation
Use the df /sales command to view the free space on the partition.
Use the free command to show memory statistics. Use the diff command to compare two files.
References
TestOut Linux Pro 5.0 - 8.6 File System Maintenance
Mary, a system administrator, would like to deploy virtual machines, storage, and networking in a cloud environment. Which of the following file formats would allow Mary to modularize these items as a template? (Select TWO).
a. YAML
b. JSON
c. XML
what is
a. YAML
&
b. JSON
Explanation
JSON and YAML are both used by cloud providers to encapsulate virtual machines, storage, and networking into templates. This provides a way to quickly instantiate a set of cloud resources using a template.
XML, XSD, and XSL are not used to deploy templates as described.
References
TestOut Linux Pro 5.0 - 13.2 Virtual Machines
Which of the following types of cloud storage is managed from a dashboard or webpage?
a. libraries
b. blob
c. block
what is
c. blob
Explanation
Blob is short for binary large object. Blobs can be any type of data, like documents, video, audio, or backup data. You don't store and retrieve blob data the same way you would on a network drive. Instead, blob storage is managed from a dashboard or webpage. As you upload files, each file or blob is given a URL that's used to access or download the blob. This is especially useful because that URL can be used as a link in other websites.
Block storage is like traditional drive space.
Container and libraries are not cloud storage types.
References
TestOut Linux Pro 5.0 - 13.1 Cloud and Virtualization Overview