Exam LFCS All QuestionsBrowse all questions from this exam
Question 102

Which of the following commands will change the quota for a specific user?

    Correct Answer: A

    The command 'edquota' is specifically designed for editing user and group quotas. When you run 'edquota' followed by a username, it opens a text editor where you can modify the quota limits for that particular user. Other commands like 'repquota', 'quota -e', and 'quota' do not allow you to change quota values; they are used for reporting or displaying the current quota status.

Discussion
9866666Option: A

The correct answer is A. edquota Explanation: edquota: This command is specifically designed to edit user and group quotas. It opens a text editor (usually vi) where you can directly modify the quota limits for a specific user or group. repquota: This command generates reports on disk usage and quotas for filesystems, but it doesn't allow you to change the quota values themselves. quota -e: There is no -e option for the quota command. quota: This command displays the current quotas for a user or group, but it doesn't have a built-in way to modify them. Example: To change the quota for a user named "john," you would use the following command: sudo edquota john This will open the quota file for "john" in an editor, allowing you to modify the soft and hard limits for block usage and inode usage.