Exam LFCS All QuestionsBrowse all questions from this exam
Question 100

SIMULATION -

Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

    Correct Answer:

    The command used to create and initialize the files used to store quota information is quotacheck. The quotacheck command is responsible for scanning a file system and creating the necessary quota files, typically aquota.user and aquota.group, which store quota limits and current usage information for users and groups. It is used during the initial setup of quotas or when updating quota information after changes to the file system.

Discussion
Strib

The quotacheck command is used to create and initialize the files that store quota information on a file system. It is typically used in conjunction with disk quotas, which are a way to limit and monitor the disk space usage of users or groups on a file system.

Strib

Here are some key points about the quotacheck command: Syntax: quotacheck [options] [filesystems] The filesystems parameter specifies the file systems on which to create and initialize the quota files. If no specific file systems are mentioned, quotacheck checks all file systems listed in the /etc/fstab file. The command needs to be run with administrative privileges, such as using sudo or being logged in as the root user. When executed, quotacheck scans the specified file systems and creates or updates the quota files (aquota.user and aquota.group) in the root directory of each file system. The quota files store the quota limits and current usage information for individual users (aquota.user) and groups (aquota.group) on the file system. The quotacheck command can be used as part of the initial setup of quotas or when changes are made to the file system that could affect the quota information.

Strib

It is often necessary to run the quotacheck command periodically or after a file system has been unmounted/mounted to ensure the quota information is accurate and up to date. Additional options can be used with quotacheck to control its behavior, such as specifying a different location for the quota files or forcing a reinitialization of the quota files.

rhylos

quotacheck -cug /home after edit fstab and add quota option