Study for the TestOut Linux Pro Exam with our engaging quiz. Prepare using our flashcards and comprehensive multiple choice questions, each with hints and explanations to help you succeed. Get ready for your Linux certification today!

Practice this question and more.


What command is used to display the disk quota for a user?

  1. quota -u

  2. showquota

  3. diskquota

  4. df

The correct answer is: quota -u

The command that displays the disk quota for a user is indeed "quota -u." This command is specifically designed to provide information about disk usage limits that are set for users. When you run this command, it retrieves and shows the quotas assigned to the specified user or the current user if no user name is provided. The "-u" flag specifies that you want to check user quotas rather than group quotas. The other commands listed do not serve this purpose. "showquota," for instance, might imply a similar function but is not a standard command commonly found in Unix/Linux systems. "diskquota" is not a recognized command in typical Linux distributions. "df," on the other hand, is used for reporting file system disk space usage, showing how much space is available and used on mounted filesystems but does not relate specifically to user quotas. Thus, "quota -u" is the appropriate command for viewing a user's disk quota.