Hands-on task
This task is step 10 of the course “Disks, links and free space”
Total size of files
Calculate the total size in bytes of all regular files in the /srv/logs directory (recursively, including subdirectories) and write the number to /root/total.txt.
What you'll practise:
- find -printf
- %s size
- awk summing
- aggregation
- recursion