I use the “du” command quite a lot - it’s very useful. Better still: one can read from a file a list of files/directories for which one wants a size summary.
The Man pages offer the option:
–files0-from=F
summarize disk usage of the NUL-terminated file names specified in file F
I tried creating a simple list containing one file or directory per line but this doesn’t work.
I guess the clue is in the “NUL-terminated file names specified in file” requirement but I can’t discover from Google just what a NUL-terminated file name is.
Can anyone advise me, please?
Found a solution!
du -sh cat <file-name-path>
Hope this helps others, although it would still be nice to understand the proper “du” option.