i have plenty of empty directories and i wonder if there's a way to display actual direcory sizes (after some sort of scan maybe) in MC
3 Answers
Press Ctrl + Space on current directory and this will show it size. Also, you can use visual select to apply this command on multiply items.
If you press Ctrl + Space on ..
directory mc will calculate size of all subdirectories in current dir
To see total size of all directories, you can select them all using Inserl key, and see total size at the bottom of the panel
-
-
1
-
2@Maxim you could do that pressing the shortcut on top
..
, then mc would calculate space for all folders in current dir– logoffAug 10, 2019 at 15:09 -
Hmm.. I have pressed Ctrl + Space and got size for each directory but not total size. The single way I know for now - choose all files folders and press Ctrl + Space.– MaximOct 16, 2019 at 0:09
Just go to "Command" menu and select "Show directory sizes" in desired root directory.
find . -type d -empty
. Or evenfind . -depth -type d -empty -delete
(but be careful: some empty dirs are important).du -sh */
orncdu -rx .