find . -printf '%y %p\n' > list.txt To get the total size of a directory and all children du -hs directory/* To get the total size of each file in the directory du directory/*