Hands-on task
This task is step 3 of the course “Disks, links and free space”
Find the directory that ate up the space
Under /root/data there are three subdirectories: app, logs, cache. One of them takes up far more disk space than the others. Determine which subdirectory is the largest by volume, and write its name (without the path) to the file /root/answer.txt.
What you'll practise:
- du
- sort
- directory size
- pipeline
- basename