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