LPIC-1 Exam 101 v5 (Linux Administrator) — Question 23
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
Answer options
- A. tune2fs -d 200 /dev/sda1
- B. tune2fs -i 200 /dev/sda1
- C. tune2fs -c 200 /dev/sda1
- D. tune2fs -n 200 /dev/sda1
- E. tune2fs --days 200 /dev/sda1
Correct answer: B
Explanation
The correct command is B, as the '-i' option in tune2fs specifies the maximum number of days between checks. Option A is incorrect because '-d' is not a valid option for this purpose. Options C and D are also incorrect as '-c' sets the maximum number of mounts before a check, and '-n' is not related to time intervals. Option E is incorrect since '--days' is not a recognized argument for tune2fs.