Hands-on task
This task is step 3 of the course “Text in the terminal: grep, sed, awk”
sort: the heaviest directories
/root/du_report.txt is a disk usage report: lines directory megabytes. Sort them by size (the second field) in descending order — heaviest on top — and write them to /root/biggest.txt.
What you'll practise:
- sort -k
- numeric sort
- sort -r
- sort by field