Free CompTIA Linux+ XK0-005 Practice Question

A system administrator wants to generate a report of disk usage by each user in the home directory and store the output to a file called disk_report.txt, overwriting any existing data in the file. Which command should they use to accomplish this task?

  • du -h /home/* >> disk_report.txt

  • du -h /home/* < disk_report.txt

  • du -h /home/* > disk_report.txt

  • du -h /home/* &> disk_report.txt

This question's topic:
CompTIA Linux+ XK0-005 / 
Scripting, Containers, and Automation
Your Score:

Check or uncheck an objective to set which questions you will receive.

SAVE $45