Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1.

Which of the following commands can be used to scan a filesystem for disk usage, create,
check, and repair quota files?
a. quota
b. quotacheck
c. chkquota
d. edquota

2. Which of the following directories is created by default when an ext2, ext3, or ext4 filesystem
is created on a device that is used by the fsck utility?
a. /proc/tmp/
b. /lost+found/
c. /var/crash/
d. /var/tmp/

3. The quotas for certain users can be edited by using which command?
a. usrquota
b. edquota
c. chquota
d. repquota

4. What command can be used to check different kinds of filesystems on Linux for errors?
a. chkdsk
b. errorchk
c. fs_check
d. fsck
5. Which of the following would be the device file for the third partition on the second SATA
drive on a Linux system?
a. /dev/hdb3
b. /dev/hdc2
c. /dev/sdb3
d. /dev/sdc2

6. If the mkfs command is executed to create a filesystem and only the block device name is
specified, which of the following filesystems will be created?
a. ext2
b. ext4
c. ext3
d. exFAT
7. Which of the following commands cannot be used to create an exFAT filesystem on a USB
thumb drive that is recognized as /dev/sdb?
a. mkexfatfs /dev/sdb1
b. mke2fs.exfat /dev/sdb1
c. mkfs.exfat /dev/sdb1
d. mkfs exfat /dev/sdb1

8. Which of the following commands can be used to create and activate a swap partition on a
Linux system? (Each answer represents part of the whole.)
a. mke2swap /dev/sda6
b. mkswap /dev/sda6
c. mkeswap /dev/sda6
d. mkswap -on /dev/sda6
e. mke2swap -on /dev/sda6
f. swapon /dev/sda6
g. makeswap /dev/sda6

Answers:
1. b. quotacheck
2. b. /lost+found/
3. b. edquota
4. d. fsck
5. c. /dev/sdb3
6. a. ext2
7. d. mkfs exfat /dev/sdb1
8. b. mkswap /dev/sda6
f. swapon /dev/sda6

You might also like