LFCS · Question #751
Which of the following commands is run LAST during boot on a system with quotas enabled?
The correct answer is D. quotaon. When quotas are enabled on a Linux system, quotaon is the last command executed related to quota management during boot, as it activates the quota enforcement after file systems are checked and mounted and quotacheck has prepared the quota files.
Question
Options
- Afsck
- Bmount
- Cquotacheck
- Dquotaon
How the community answered
(20 responses)- C5% (1)
- D95% (19)
Why each option
When quotas are enabled on a Linux system, `quotaon` is the last command executed related to quota management during boot, as it activates the quota enforcement after file systems are checked and mounted and `quotacheck` has prepared the quota files.
`fsck` runs early to check filesystem integrity, before quotas are enabled.
`mount` runs after `fsck` but before quota services are fully activated.
`quotacheck` prepares the quota files but does not activate the quota system itself; `quotaon` performs the activation.
During the boot process on a system with quotas, `fsck` first checks file system integrity, then `mount` makes the file systems available. Next, `quotacheck` is run to verify and repair quota database files. Finally, `quotaon` is executed to activate the quota system, making it the last quota-related command to run during boot.
Concept tested: Linux boot sequence (quotas)
Source: https://learn.microsoft.com/en-us/windows-server/administration/linux-reference/linux-commands/quota
Topics
Community Discussion
No community discussion yet for this question.