Linux Foundation Certified System Administrator (LFCS) — Question 42
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 -c 200 /dev/sda1
- C. tune2fs -i 200 /dev/sda1
- D. tune2fs -n 200 /dev/sda1
- E. tune2fs --days 200 /dev/sda1
Correct answer: C
Explanation
The correct answer is C, as the '-i' option in the tune2fs command specifies the interval in days between filesystem checks. Option A is incorrect because '-d' is not a valid option for setting check intervals, B is wrong as '-c' sets the maximum mount count before checks, D is incorrect since '-n' does not relate to check intervals, and E is invalid because '--days' is not a recognized parameter for tune2fs.