38

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

choseh
  • 381
  • 1
  • 3
  • 3
  • 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 06 '12 at 21:19
  • Of cours you can also Ctrl+o and then `du -sh */` or `ncdu -rx .` – Pablo A Sep 30 '20 at 22:46

3 Answers3

60

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

15

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

Paul
  • 1,857
  • 1
  • 11
  • 15
1

I would use gt5 for that.

Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151