Timeline for Is it possible to list files using ls with du directory size?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 31 at 14:09 | answer | added | Nevstah | timeline score: 0 | |
| Nov 11, 2022 at 11:39 | comment | added | Luca Reghellin | Thank you. Please note that what i'd like is to list only the contents of the current directory ("max depth 1"), but for all sub-directories of the current directory indicate as "size" not the default 4k-Block of the dir entry, but the cumulative size of the contained files as noted by AdminBee below | |
| Nov 10, 2022 at 10:00 | comment | added | Stéphane Chazelas | Is du -bhlsc -- * what you're after assuming GNU du? (or without -b if you want the disk usage instead of size, beware of the implication of -l). Replace * with *(D), assuming zsh if you also want hidden files to be listed. | |
| Nov 10, 2022 at 9:50 | comment | added | Stéphane Chazelas | du reports disk usage, not size | |
| Nov 10, 2022 at 9:47 | answer | added | Francisco de Javier | timeline score: -1 | |
| Nov 10, 2022 at 9:39 | history | asked | Luca Reghellin | CC BY-SA 4.0 |