From IT Mission Linux Tips, Hacks, Tutorials, Howtos - Itmission.org

Main: Finding-folder-consumingMore-space


Finding folder consuming more space

du -s /* | sort -n -r

 
[root@fedora ~]# du -s /* | sort -n -r
2935700	/home
2510604	/usr
345632	/var
132780	/opt
36183	/boot
30416	/etc
988	/run
632	/tmp
164	/dev
92	/root
16	/lost+found
4	/srv
4	/mnt
0	/sys
0	/sbin
0	/proc
0	/media
0	/lib
0	/bin
[root@fedora ~]#

or

-h --max-depth=1 /home

 
[root@fedora /]# du -h --max-depth=1 /home
2.9G	/home/fedora
2.9G	/home

du -h --max-depth=2 /home

 
[root@fedora /]# du -h --max-depth=2 /home
12K	/home/fedora/.abrt
8.0K	/home/fedora/.spice-vdagent
4.0K	/home/fedora/Public
2.6M	/home/fedora/.cache
4.0K	/home/fedora/.ssh
2.6G	/home/fedora/Downloads
4.0K	/home/fedora/Videos
34M	/home/fedora/Desktop
4.0K	/home/fedora/Pictures
856K	/home/fedora/.gstreamer-0.10
4.0K	/home/fedora/.gnome2_private
24K	/home/fedora/.AbiSuite
508K	/home/fedora/.local
40K	/home/fedora/.pulse
16K	/home/fedora/.gconf
4.0K	/home/fedora/Templates
4.0K	/home/fedora/Music
36K	/home/fedora/.pki
8.0K	/home/fedora/.fontconfig
12K	/home/fedora/.dbus
316K	/home/fedora/.purple
12K	/home/fedora/.elinks
170M	/home/fedora/.mozilla
16M	/home/fedora/.config
24K	/home/fedora/.xine
20K	/home/fedora/.gnome2
52K	/home/fedora/.thumbnails
24K	/home/fedora/Documents
8.0K	/home/fedora/.Foxit
2.9G	/home/fedora
2.9G	/home
[root@fedora /]# 


Retrieved from http://www.itmission.org/Main/Finding-folder-consumingMore-space
Page last modified on August 21, 2012, at 07:22 AM