What command would you use to check disk quota for users?

Prepare for the Linux Professional Institute Certification Level 1. Use flashcards and multiple choice questions, complete with hints and explanations. Enhance your understanding and get ready to ace the exam!

The command used to check disk quotas for users is "repquota." This command reports disk usage and limits for each user and group on a filesystem that has quota support enabled. It provides a detailed overview of current usage against set limits for each user, making it a useful tool for system administrators in managing and monitoring disk space usage effectively.

"repquota" typically gives a tabular output indicating how much disk space is being used by individual users and whether they are over their allocated quota. This is particularly important in multi-user environments where managing disk space becomes crucial to ensure fair usage among all users.

In contrast, other commands do not provide the necessary details regarding user quotas. For example, "df -h" provides information about disk space usage for filesystems but does not specifically target user quotas. The "quota" command, although it can show a user's quota limits, does not report on quotas for all users at once, making it less comprehensive compared to "repquota." Finally, "du -sh" displays the disk usage of files and directories, but it does not relate to user quotas at all, focusing instead on summarizing sizes of specific paths.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy