Skip to main content
8 events
when toggle format what by license comment
May 30, 2023 at 0:07 answer added finefoot timeline score: 1
May 29, 2023 at 22:55 vote accept finefoot
Dec 21, 2022 at 8:56 answer added Stéphane Chazelas timeline score: 1
Dec 21, 2022 at 8:21 comment added Stéphane Chazelas For directories (which I suppose is what you mean by folder), do you want the size of the directory file itself, or do you also want the size of files within included? Recursively? Then what about files included more than once (several hard links to the same file), do you want them included only once like GNU du -b does?
Dec 21, 2022 at 8:16 comment added Stéphane Chazelas See How can I get the size of a file in a bash script?
Dec 21, 2022 at 0:25 comment added edo1 BTW, POSIX du doesn't have --apparent-size option as well (e.g on fs with compression support disk usage could be less than apparent size).
Dec 21, 2022 at 0:15 comment added edo1 for files only: ls -ld somefile | awk '{print $5}'
Dec 20, 2022 at 22:58 history asked finefoot CC BY-SA 4.0