Linux Basic Practice Multiple Choice Questions – 16

76. Question: Which command would you use in Linux to monitor I/O statistics and disk activity in real-time?

Option 1: iostat

Option 2: top

Option 3: df

Option 4: du

Correct Answer: 1

Explanation: To monitor I/O statistics and disk activity in real-time on Linux, you would use the iostat command. It provides detailed information about input and output operations, helping you identify performance bottlenecks related to disk I/O.

77. Question: The command used in Linux to resize the filesystem on a partition is _____.

Option 1: resize2fs

Option 2: mv

Option 3: chmod

Option 4: cp

Correct Answer: 1

Explanation: The command used in Linux to resize the filesystem on a partition is resize2fs. This command is used to adjust the filesystem to utilize the newly available space after resizing the partition.

78. Question: If you want to see detailed information about disk usage for each directory, the _____ command is appropriate.

Option 1: du

Option 2: df

Option 3: ls

Option 4: lsblk

Correct Answer: 1

Explanation: If you want to see detailed information about disk usage for each directory in Linux, the du (disk usage) command is appropriate. It shows the disk space used by each directory and its subdirectories.

79. Question: To change or set the UUID of a filesystem in Linux, you would use the ____ command.

Option 1: tune2fs

Option 2: uuidgen

Option 3: fsck

Option 4: resize2fs

Correct Answer: 1

Explanation: To change or set the UUID of a filesystem in Linux, you would use the tune2fs command. This command allows you to modify various parameters of the filesystem, including the UUID.

80. Question: In managing disk partitions, the term _____ refers to a method that allows the filesystem to span across multiple physical disks.

Option 1: RAID

Option 2: LVM

Option 3: EXT4

Option 4: XFS

Correct Answer: 2

Explanation: In managing disk partitions, the term LVM (Logical Volume Manager) refers to a method that allows the filesystem to span across multiple physical disks. LVM provides flexibility in managing storage by creating logical volumes that can span multiple physical drives.

Leave a Comment