Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Display the size of the trash prior to emptying' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display the size of the trash prior to emptying
Authored by: marcpage on Feb 28, '03 10:29:13AM

This only works for things thrown into the trash on the boot disk. The size of the trash on disk images, network drives and removable media will not be included in the reported size, but will be deleted when the trash is emptied.

[ Reply to This | # ]
...and partitions...
Authored by: mervTormel on Feb 28, '03 03:17:34PM

$ sudo du -sk ~/.trash /Volumes/*/.trashes/ | \
awk "{sum += \$1} END{print sum}" ${1+"$@"}

[ Reply to This | # ]
...and partitions...
Authored by: Accura on Mar 01, '03 03:58:31AM

sudo du -skc ~/.Trash/ /.Trashes/ /Volumes/*/.Trashes/ | grep total | awk '{print $1}'

i also wrote a basic konfabulator widget to do this (i was bored), it needs some one to do the art work but ill post the code/widget if any one wants it. its faster than using the apple script. is the konfabulator home page.

Konfabulator is a program that lets you run widgets (like weather, iTunes remotes, wrapers for cgi utils) that are writen in xml and java script. The widgets are easy to write.

"The time has come," the walrus said. "To talk of many things..."

[ Reply to This | # ]