UNIX MCQs – File System Administration (Part – 4)

UNIX Question and Answer – File System Administration

UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test

1. What is the purpose of the -e option in the quotaon command?

a) Exclude specific file systems

b) Enable quotas for all users

c) Exclude specific users

d) Enable quotas for specific file systems

Answer: a) Exclude specific file systems

Explanation: The -e option of the quotaon command is used to exclude specific file systems from quotas in UNIX.


2. Which command is used to display disk usage for a specific user and directory in UNIX?

a) userdu

b) du -user

c) du -u

d) du -udir

Answer: c) du -u

Explanation: The du command with the -u option is used to display disk usage for a specific user and directory in UNIX.


3. What is the purpose of the -F option in the quotaoff command?

a) Perform a quick operation

b) Exclude specific file systems

c) Disable quotas for all users

d) Enable quotas for all users

Answer: c) Disable quotas for all users

Explanation: The -F option of the quotaoff command is used to disable quotas for all users in UNIX.


4. Which command is used to display disk usage for a specific group and directory in UNIX?

a) groupdu

b) gdu

c) du -g

d) du -group

Answer: c) du -g

Explanation: The du command with the -g option is used to display disk usage for a specific group and directory in UNIX.


5. What is the purpose of the -m option in the quotaoff command?

a) Exclude specific file systems

b) Disable quotas for all users

c) Display summary information

d) Perform a quick operation

Answer: b) Disable quotas for all users

Explanation: The -m option of the quotaoff command is used to disable quotas for all users in UNIX.


6. Which command is used to display disk usage for a specific project and directory in UNIX?

a) projdu

b) projectdu

c) du -p

d) du -project

Answer: c) du -p

Explanation: The du command with the -p option is used to display disk usage for a specific project and directory in UNIX.


7. What is the purpose of the -Q option in the quotaon command?

a) Perform a quick operation

b) Display quota information

c) Enable quotas for all users

d) Display usage in kilobytes

Answer: b) Display quota information

Explanation: The -Q option of the quotaon command is used to display quota information in UNIX.


8. Which command is used to display disk usage for a specific file system type and directory in UNIX?

a) fsdu

b) fsusage

c) du -fs

d) du -file

Answer: c) du -fs

Explanation: The du command with the -fs option is used to display disk usage for a specific file system type and directory in UNIX.


9. What is the purpose of the -v option in the quotaoff command?

a) Perform a verbose operation

b) Display version information

c) Enable quotas for all users

d) View quota usage

Answer: a) Perform a verbose operation

Explanation: The -v option of the quotaoff command is used to perform a verbose operation in UNIX.


10. Which command is used to display disk usage for a specific user and file system type in UNIX?

a) userdu

b) du -u

c) du -user

d) du -fs

Answer: b) du -u

Explanation: The du command with the -u option is used to display disk usage for a specific user and file system type in UNIX.


11. Which command is used to display the disk usage statistics for the specified directory and its subdirectories in UNIX, while excluding certain file systems?

a) du -x

b) du -f

c) du -e

d) du -a

Answer: a) du -x

Explanation: The du command with the -x option displays disk usage statistics for a directory and its subdirectories in UNIX, excluding certain file systems.


12. What is the purpose of the -n option in the quotaon command?

a) Specify quota file location

b) Exclude specific file systems

c) Enable quotas for all users

d) Do not perform a dry run

Answer: d) Do not perform a dry run

Explanation: The -n option of the quotaon command is used to indicate not to perform a dry run.


13. Which command is used to display disk usage for a specific project and directory in UNIX?

a) projdu

b) projectdu

c) du -p

d) du -proj

Answer: b) projectdu

Explanation: The projectdu command is used to display disk usage for a specific project and directory in UNIX.


14. What is the purpose of the -r option in the df command?

a) Display usage for remote file systems

b) Display usage for mounted file systems

c) Display file system type

d) Display usage in human-readable format

Answer: b) Display usage for mounted file systems

Explanation: The -r option of the df command is used to display disk usage for mounted file systems in UNIX.


15. Which command is used to display the disk usage of a specific directory and its subdirectories in UNIX, while displaying the sizes in gigabytes?

a) du -g

b) du -h

c) du -S

d) du -k

Answer: a) du -g

Explanation: The du command with the -g option displays the disk usage of a directory and its subdirectories in UNIX, showing sizes in gigabytes.


16. What is the purpose of the -T option in the du command?

a) Display usage in terabytes

b) Include specific files

c) Display total usage

d) Display usage in human-readable format

Answer: b) Include specific files

Explanation: The -T option of the du command is used to include specific files in disk usage calculations in UNIX.


17. Which command is used to display disk usage for a specific group and directory in UNIX?

a) groupdu

b) gdu

c) du -g

d) du -group

Answer: a) groupdu

Explanation: The groupdu command is used to display disk usage for a specific group and directory in UNIX.


18. What is the purpose of the -m option in the df command?

a) Display usage in human-readable format

b) Display usage in megabytes

c) Display file system type

d) Display usage for remote file systems

Answer: b) Display usage in megabytes

Explanation: The -m option of the df command is used to display disk usage in megabytes in UNIX.


19. Which command is used to display disk usage for a specific file system type and directory in UNIX?

a) fsdu

b) fsusage

c) du -fs

d) du -file

Answer: c) du -fs

Explanation: The du command with the -fs option is used to display disk usage for a specific file system type and directory in UNIX.


20. What is the purpose of the -u option in the df command?

a) Display usage for specific users

b) Display usage for mounted file systems

c) Display usage in human-readable format

d) Display usage for remote file systems

Answer: a) Display usage for specific users

Explanation: The -u option of the df command is used to display disk usage for specific users in UNIX.


21. Which command is used to display the disk usage of a specific directory and its subdirectories in UNIX, while displaying the sizes in terabytes?

a) du -t

b) du -T

c) du -h

d) du -TB

Answer: d) du -TB

Explanation: The du command with the -TB option displays the disk usage of a directory and its subdirectories in UNIX, showing sizes in terabytes.


22. What is the purpose of the -F option in the quotaoff command?

a) Perform a fast check

b) Exclude specific file systems

c) Disable quotas for all users

d) Enable quotas for all users

Answer: c) Disable quotas for all users

Explanation: The -F option of the quotaoff command is used to disable quotas for all users in UNIX.


23. Which command is used to display disk usage for a specific user and directory in UNIX?

a) userdu

b) du -user

c) du -u

d) du -udir

Answer: a) userdu

Explanation: The userdu command is used to display disk usage for a specific user and directory in UNIX.


24. What is the purpose of the -x option in the du command?

a) Exclude specific files

b) Display usage in human-readable format

c) Display usage for specific file systems only

d) Display usage in kilobytes

Answer: c) Display usage for specific file systems only

Explanation: The -x option of the du command is used to display disk usage for specific file systems only in UNIX.


25. Which command is used to display the disk usage of a specific directory and its subdirectories in UNIX, while displaying the sizes in petabytes?

a) du -PB

b) du -p

c) du -h

d) du -T

Answer: a) du -PB

Explanation: The du command with the -PB option displays the disk usage of a directory and its subdirectories in UNIX, showing sizes in petabytes.


26. What is the purpose of the -o option in the quotaon command?

a) Display quota information

b) Perform a quick operation

c) Enable quotas for all users

d) Specify quota file location

Answer: d) Specify quota file location

Explanation: The -o option of the quotaon command is used to specify the quota file location in UNIX.


27. Which command is used to display disk usage for a specific group and file system type in UNIX?

a) groupdu

b) gdu

c) du -g

d) du -group

Answer: c) du -g

Explanation: The du command with the -g option is used to display disk usage for a specific group and file system type in UNIX.


28. What is the purpose of the -N option in the du command?

a) Display usage in human-readable format

b) Display usage for mounted file systems

c) Do not display header

d) Display file system type

Answer: c) Do not display header

Explanation: The -N option of the du command is used to not display the header in UNIX.


29. Which command is used to display disk usage for a specific project and directory in UNIX?

a) projdu

b) projectdu

c) du -p

d) du -project

Answer: b) projectdu

Explanation: The projectdu command is used to display disk usage for a specific project and directory in UNIX.


30. What is the purpose of the -k option in the df command?

a) Display usage in kilobytes

b) Display usage in human-readable format

c) Display usage for remote file systems

d) Display usage for mounted file systems

Answer: a) Display usage in kilobytes

Explanation: The -k option of the df command is used to display disk usage in kilobytes in UNIX.


31. Which command is used to display disk usage for a specific user and file system type in UNIX?

a) userdu

b) du -u

c) du -user

d) du -fs

Answer: b) du -u

Explanation: The du command with the -u option is used to display disk usage for a specific user and file system type in UNIX.


32. What is the purpose of the -l option in the du command?

a) Follow symbolic links

b) Display usage in human-readable format

c) Display usage for specific file systems only

d) Display usage in kilobytes

Answer: a) Follow symbolic links

Explanation: The -l option of the du command is used to follow symbolic links and calculate disk space usage accordingly in UNIX.


33. Which command is used to display disk usage for a specific file system type and directory in UNIX?

a) fsdu

b) fsusage

c) du -fs

d) du -file

Answer: c) du -fs

Explanation: The du command with the -fs option is used to display disk usage for a specific file system type and directory in UNIX.


34. What is the purpose of the -v option in the df command?

a) Display quota information

b) Perform a verbose operation

c) Display usage in human-readable format

d) View quota usage

Answer: b) Perform a verbose operation

Explanation: The -v option of the df command is used to perform a verbose operation in UNIX.


35. Which command is used to display disk usage for a specific user and directory in UNIX?

a) userdu

b) du -user

c) du -u

d) du -udir

Answer: c) du -u

Explanation: The du command with the -u option is used to display disk usage for a specific user and directory in UNIX.


36. Which command is used to display the disk usage of a specific directory and its subdirectories in UNIX, while excluding files larger than a specified size?

a) du -maxsize

b) du -max

c) du -exclude

d) du -size

Answer: d) du -size

Explanation: The du command with the -size option displays disk usage while excluding files larger than a specified size.


37. What is the purpose of the -t option in the df command?

a) Display quota information

b) Display usage in human-readable format

c) Limit the display to specific file systems

d) Display total disk usage

Answer: c) Limit the display to specific file systems

Explanation: The -t option of the df command limits the display to specific file systems in UNIX.


38. Which command is used to set disk quotas for a specific user and file system in UNIX?

a) setquota

b) edquota

c) userquota

d) quotaon

Answer: b) edquota

Explanation: The edquota command is used to set disk quotas for a specific user and file system in UNIX.


39. What is the purpose of the -I option in the du command?

a) Include specific files

b) Display usage in human-readable format

c) Exclude specific files

d) Display usage in kilobytes

Answer: c) Exclude specific files

Explanation: The -I option of the du command is used to exclude specific files from disk usage calculations in UNIX.


40. Which command is used to set soft limits for disk quotas in UNIX?

a) setsoftquota

b) edquota

c) setquota

d) setlimquota

Answer: b) edquota

Explanation: The edquota command is used to set soft limits for disk quotas in UNIX.


41. What is the purpose of the -T option in the df command?

a) Display usage in terabytes

b) Include specific files

c) Display total usage

d) Display usage in human-readable format

Answer: c) Display total usage

Explanation: The -T option of the df command displays the total disk usage in UNIX.


42. Which command is used to display disk usage for a specific file system type and directory in UNIX?

a) fsdu

b) fsusage

c) du -fs

d) du -file

Answer: c) du -fs

Explanation: The du command with the -fs option displays disk usage for a specific file system type and directory in UNIX.


43. What is the purpose of the -F option in the quotaon command?

a) Perform a fast operation

b) Exclude specific file systems

c) Enable quotas for all users

d) Disable quotas for all users

Answer: c) Enable quotas for all users

Explanation: The -F option of the quotaon command is used to enable quotas for all users in UNIX.


44. Which command is used to display disk usage for a specific group and directory in UNIX?

a) groupdu

b) gdu

c) du -g

d) du -group

Answer: a) groupdu

Explanation: The groupdu command is used to display disk usage for a specific group and directory in UNIX.


45. What is the purpose of the -F option in the df command?

a) Display usage for remote file systems

b) Display usage for mounted file systems

c) Display file system type

d) Display usage in human-readable format

Answer: b) Display usage for mounted file systems

Explanation: The -F option of the df command is used to display disk usage for mounted file systems in UNIX.


46. Which command is used to display disk usage for a specific user and file system type in UNIX?

a) userdu

b) du -u

c) du -user

d) du -fs

Answer: b) du -u

Explanation: The du command with the -u option displays disk usage for a specific user and file system type in UNIX.


47. What is the purpose of the -d option in the df command?

a) Display quota information

b) Display usage for remote file systems

c) Display usage in human-readable format

d) Set maximum depth of recursion

Answer: d) Set maximum depth of recursion

Explanation: The -d option of the df command is used to set the maximum depth of recursion for disk usage calculations in UNIX.


48. Which command is used to display disk usage for a specific project and directory in UNIX?

a) projdu

b) projectdu

c) du -p

d) du -project

Answer: b) projectdu

Explanation: The projectdu command is used to display disk usage for a specific project and directory in UNIX.


49. What is the purpose of the -l option in the quotaoff command?

a) Display quota information

b) Perform a fast check

c) Disable quotas for all users

d) Enable quotas for all users

Answer: c) Disable quotas for all users

Explanation: The -l option of the quotaoff command is used to disable quotas for all users in UNIX.


50. Which command is used to display disk usage for a specific group and file system type in UNIX?

a) groupdu

b) gdu

c) du -g

d) du -group

Answer: c) du -g

Explanation: The du command with the -g option displays disk usage for a specific group and file system type in UNIX.

Related Articles

Linux MCQ

Welcome to Linux Multiple Choice Questions (MCQ) Section Embark on a journey through the world of...