LFCS · Question #700
How many fields are in a syntactically correct line of /etc/fstab?
The correct answer is D. 6. A syntactically correct line in the /etc/fstab file consists of exactly six fields, each separated by whitespace, defining a filesystem mount.
Question
Options
- A3
- B4
- C5
- D6
- E7
How the community answered
(50 responses)- B2% (1)
- C4% (2)
- D86% (43)
- E8% (4)
Why each option
A syntactically correct line in the `/etc/fstab` file consists of exactly six fields, each separated by whitespace, defining a filesystem mount.
3 fields would be insufficient to define all the necessary parameters for a complete and functional filesystem entry in `/etc/fstab`.
4 fields are also insufficient to fully specify a filesystem mount in `/etc/fstab`, as critical information like dump frequency and fsck pass number would be missing.
5 fields would omit either the dump frequency or the fsck pass number, leading to an incomplete entry and potential issues with backup or boot-time checks.
Each standard entry in the `/etc/fstab` file is comprised of six distinct fields: 1) the device or UUID, 2) the mount point, 3) the filesystem type, 4) mount options, 5) dump frequency (for backup utilities), and 6) fsck pass number (for filesystem check order at boot).
7 fields are not standard for `/etc/fstab`; the specification clearly defines only six fields for each filesystem entry.
Concept tested: `/etc/fstab` file structure
Source: https://man7.org/linux/man-pages/man5/fstab.5.html
Topics
Community Discussion
No community discussion yet for this question.