PDA

View Full Version : FAQ: Free Disk Space



Rog131
Sep 5th 2007, 12:40 PM
In the konsole

df

NAME
df - report file system disk space usage

SYNOPSIS
df [OPTION]... [FILE]...

DESCRIPTION
This manual page documents the GNU version of df. df displays the
amount of disk space available on the file system containing each file
name argument. If no file name is given, the space available on all
currently mounted file systems is shown.
Examples:

:~$ df
or

:~$ df -h -T



-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)

-T, --print-type
print file system type


du

NAME
du - estimate file space usage

SYNOPSIS
du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F

DESCRIPTION
Summarize disk usage of each FILE, recursively for directories.

Examples:

:~$ du
or

:~$ du -h

-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)



Few programs with gui

Filelight

It is like a pie-chart, but the segments nest, allowing you to see not only which directories take up all your space, but which directories and files inside those directories are the real culprits.

xdiskusage

xdiskusage is a user-friendly program to show you what is using up
all your disk space. It is based on the design of the "xdu" program
written by Phillip C. Dykstra. Changes have been made so it runs "du"
for you, and can display the free space left on the disk, and produce
a PostScript version of the display.

KDirStat

KDirStat (KDE Directory Statistics) is a small utility program that sums up
disk usage for direcory trees, very much like the Unix 'du' command. It
displays the disk space used up by a directory tree, both numerically and
graphically.

kdf

KDiskFree displays the available file devices (hard drive partitions, floppy and CD drives, etc.) along with information on their capacity, free space, type and mount point. It also allows you to mount and unmount drives and view them in a file manager.


Links

DISK USAGE MONITOR
http://www.penguin.ch/dokuwiki/doku.php/binaries:diskusage

Topic: HELP KUBUNTU 7.04
http://kubuntuforums.net/forums/index.php?topic=3086180.0

Topic: Kubuntu fails to give an out of memory warning
http://kubuntuforums.net/forums/index.php?topic=3086089.0

Topic: How to tell how much drive space left?
http://kubuntuforums.net/forums/index.php?topic=3086335.0

Topic: Disk FreeSpace
http://kubuntuforums.net/forums/index.php?topic=3086311.0

Topic: Disk shows 100G used but when I total up folders it should be <45G
http://kubuntuforums.net/forums/index.php?topic=3082439.0

eriefisher
Sep 5th 2007, 04:44 PM
This has been a popular subject lately. Thanks.

eriefisher

dibl
Sep 5th 2007, 04:49 PM
Yes, thanks! About the only thing I really like in the Ubuntu utilities is that system resource monitor, in the filesystem view. Very quick and very clear to see where you are with partition usage, even when you have a "stack" of them. I didn't know about KDF until someone mentioned it the other day. It's not bad. :)

Fenyx
Sep 6th 2007, 02:26 AM
Nice FAQ. Thanks for the effort.

I'd just like to add that Konqueror has a built-in File Size View in the View menu -> View Mode.

My favorite of these utilities would be Filelight, followed by df when I need a quick percentage. In Filelight, I can see how much space is being used per partition and where they are being used.

Rog131
Sep 6th 2007, 01:41 PM
Thank you ! ;) It is just copy&paste from man pages and packages description field.

Rog131
Jun 3rd 2009, 05:36 PM
> agedu (http://www.chiark.greenend.org.uk/~sgtatham/agedu/) - a Unix utility for tracking down wasted disk space



correlate disk usage with last-access times to identify large and disused data

Most Unix file systems, in their default mode, helpfully record when a file was last accessed.
Not just when it was written or modified, but when it was even read. So if you generated
a large amount of data years ago, forgot to clean it up, and have never used it since,
then it ought in principle to be possible to use those last-access time stamps to tell
the difference between that and a large amount of data you're still using regularly.

agedu is a program which does this. It does basically the same sort of disk scan as du,
but it also records the last-access times of everything it scans. Then it builds
an index that lets it efficiently generate reports giving a summary of the results
for each subdirectory, and then it produces those reports on demand.


http://www.chiark.greenend.org.uk/~sgtatham/agedu/screenshot.png

The picture is from the > agedu (http://www.chiark.greenend.org.uk/~sgtatham/agedu/)



Links:

> Linux Magazine - How Old is that Data on the Hard Drive? (http://www.linux-mag.com/id/7336/)
> Agedu - Combing Files with Agedu (http://linuxtoolkit.blogspot.com/2009/04/agedu-combing-files-with-agedu.html)
> Cool Linux utility alert: agedu (http://yourlinuxguy.com/?p=261)


The agedu from the PPA /1/ repositories > Show PPAs matching: agedu (https://launchpad.net/ubuntu/+ppas?name_filter=agedu)

Update:
The Agedu is in the official repositories.



/1/ > FAQ: Repositories (http://kubuntuforums.net/forums/index.php?topic=3101615.0)