36

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

2
  • 2
    Others already answered Ctrl-Space, but since you mention empty dirs, you may also find this non-MC tip useful: find . -type d -empty. Or even find . -depth -type d -empty -delete (but be careful: some empty dirs are important).
    – mivk
    Jun 6, 2012 at 21:19
  • Of cours you can also Ctrl+o and then du -sh */ or ncdu -rx .
    – Pablo A
    Sep 30, 2020 at 22:46

3 Answers 3

57

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

4
  • That is right!!
    – gavenkoa
    Sep 23, 2012 at 9:53
  • 1
    How to get total size of all selected directories?
    – Maxim
    Aug 19, 2018 at 17:04
  • 2
    @Maxim you could do that pressing the shortcut on top .., then mc would calculate space for all folders in current dir
    – logoff
    Aug 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.
    – Maxim
    Oct 16, 2019 at 0:09
15

Just go to "Command" menu and select "Show directory sizes" in desired root directory.

0
1

I would use gt5 for that.

1

Not the answer you're looking for? Browse other questions tagged or ask your own question.