


It just sums sizes of all non-directory files in the directory (and its subdirectories recursively) one by one. ! -type d -printf '%s\n' | paste -sd+ - | bc ! -type d -print0 | xargs -r0 stat -c %s | paste -sd+ - | bc Open your library > from the above ribbon > Click on Modify view. the File size should be selected to show as a column in the view.

To get the straightforward total size of all files in the directory, the following one-line shell expression can be used (assuming a GNU system): find. First, there is not column called Folder Size, its File size, and to be able to apply the sum function. If there are hard links in the directory, then du may print smaller value as well because several different files in the directory refer the same data on the media. If the file system is compressible, then du may output even smaller number than the total size of all files, because files may be internally compressed by the file system and so they take less space on the media than just uncompressed information they contain.

Note that du prints the space that a directory occupy on the media which is usually bigger than just the total size of all files in the directory, because du takes into account the size of all auxiliary information that is stored on the media to organize the directory in compliance with file system format.
