Test Out Linux Pro 8.6.5 Practice Questions

25 July 2022
4.7 (114 reviews)
14 test answers

Unlock all answers in this set

Unlock answers (10)
question
You are requested to help a user who reports that he has no more local storage space. You got 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).
answer
df -h df
question
You have an xfs file system in your Linux system represented by /dev/sdb1. You need to copy all the filenames on the drive to the /reviewxfs file. You must be able to read the filenames in the /reviewxfs file. Which of the following commands should you use?
answer
xfs_metadump -o /dev/sdb1 /reviewxfs
question
What command would you enter at the command prompt to list all files and directories in the badams home directory along with a file size and total amount of space taken up by the directory?
answer
du -ac /home/badams
question
Your ext3 file system has experienced a significant amount of corruption. To examine the file system, you want to use the debugfs utility. Which debugfs option should you use to examine the file system?
answer
-c
question
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?
answer
-b
question
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?
answer
df /sales
question
You are asked to help a user who is 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?
answer
Change to single user mode and run fsck /dev/sda2.
question
Which of the following commands allows you to use an alternative superblock when the primary superblock has been corrupted?
answer
e2fsck -b 16385 /dev/sda1
question
You need to convert the file system of /dev/sdb3 from ext2 to ext3 without affecting the data on the drive. What command and option should you enter at the command prompt?
answer
tune2fs -j /dev/sdb3
question
You suspect your /dev/sda3 partition is in need of repair. Which of the following e2fsck options will repair the errors without any interaction from you?
answer
-p
question
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 should you use?(Select Two)
answer
xfs_info xfs_growfs -n
question
Which of the following describes the effects of the tune2fs -j /dev/sdb1 command?
answer
Converts the /dev/sdb1 device to ext3
question
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?
answer
df -i
question
Anna is attempting to unmount the mount point /mnt/daata. The umount command failed and displayed error message stating that the device is busy. Anna suspects there may be an open file causing the issue. Which of the following commands will show Anna a list of open files?
answer
lsof