How to display folder size?

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
MintyMorkyMindy
Level 3
Level 3
Posts: 169
Joined: Sun Oct 05, 2014 3:53 am

How to display folder size?

Post by MintyMorkyMindy »

Linux Mint 17, cinnamon - how to display the size of folders?

Thank you.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Linux Mint since 5 October 2014 :D
User avatar
kyphi
Level 9
Level 9
Posts: 2735
Joined: Sat Jul 09, 2011 1:14 am
Location: The Hunter Valley, Australia

Re: How to display folder size?

Post by kyphi »

You can get the size of any folder via a right click on the folder and scrolling to Properties.

Alternatively, you can install "ncdu" from the repository which will tell you exactly what each folder size is.

ncdu does a lot more than that and you can find out more by using "man ncdu" in a terminal.

If that does not answer your question, please consider providing some more details of what you want to achieve ... one-liner-questions do not really encourage a comprehensive response from anyone.
Linux Mint 21.3 Cinnamon
User avatar
MintyMorkyMindy
Level 3
Level 3
Posts: 169
Joined: Sun Oct 05, 2014 3:53 am

Re: How to display folder size?

Post by MintyMorkyMindy »

Linux Mint since 5 October 2014 :D
User avatar
Flemur
Level 20
Level 20
Posts: 10097
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How to display folder size?

Post by Flemur »

Linux Mint 17, cinnamon - how to display the size of folders?

The directory size itself is displayed the same way as any other file (a directory is a file), so I gather you mean the size of the files in a directory.

$ du -d 0
106464 .

shows the size of the current directory's (".") contents.

$ du -d 1
36 ./.grsync
224 ./.gconf
12 ./.avidemux
32 ./.gnome2
...etc

shows the size of the contents of all the directories.

$ du
36 ./.grsync
8 ./.gconf/apps/SoundConverter
8 ./.gconf/apps/aisleriot/rules
16 ./.gconf/apps/aisleriot
...etc...

shows the size of the contents of all directories under the current directory recursively.

There are params to control how the size is displayed.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
kyphi
Level 9
Level 9
Posts: 2735
Joined: Sat Jul 09, 2011 1:14 am
Location: The Hunter Valley, Australia

Re: How to display folder size?

Post by kyphi »

Open Nemo, go to Edit, then Preferences. In the File Management Preferences screen click on Preview, go to the Tooltips heading and tick the box "Show tooltips in icon and compact views".

Now you can get a size readout by hovering your cursor over any file.

If you want to track file sizes en masse, use ncdu (install from synaptic), where the entry of just those 4 letters in a terminal window will reveal all folders and their sizes in that directory. Use 'q' to exit. 'ncdu' takes 'du' a step forward.
Linux Mint 21.3 Cinnamon
Mik3e
Level 4
Level 4
Posts: 221
Joined: Sat Jan 01, 2011 2:54 pm

Re: How to display folder size?

Post by Mik3e »

There's also the Disk Usage Analyzer.
Locked

Return to “Cinnamon”