Linux Admin Ch5
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?
/dev/sdc1
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.
False
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?
Mount the filesystem and check the lost+found directory underneath the mount point
What does the du /var command do?
Shows the size of all directories within the /var directory
Only the root user can modify a file that has the immutable attribute set.
True
The lvextend command can be used to add additional unused space within a volume group to an existing logical volume.
True
A user mounts a device to a mount point directory and realizes afterward that there are files previously found within the mount point directory that are needed. What would this user do?
Unmount the device from the directory
Which of the following statements regarding LVM structure is correct?
VGs are composed of one or more PVs
given the following output from the ls command, how many files are linked with file 1? A LOT OF SHIT I'M NOT TYPING!!!!
b. two
You want to see the filesystems that are presently in use on the system. What command could you use?
cat /etc/mtab
Which of the following commands can be used to create partitions on either a MBR or GPT hard disk?
d. parted
Which command is used to display the amount of free space that exists on a filesystem?
df
What does the command dumpe2fs -h do?
displays the number of inodes used and available in an ext2 filesystem
Which command is used to format a partition on a hard disk drive with the ext4 filesystem?
mke2fs -t ext4 device
Which command mounts all existing filesystems in /etc/fstab?
mount -a
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
the device file has become corrupt
What must you do to successfully run the fsck command on a filesystem?
umount the filesystem