du
root@localhost agi-bin]# du
132 ./.svn/text-base
4 ./.svn/props
4 ./.svn/tmp/text-base
4 ./.svn/tmp/props
4 ./.svn/tmp/prop-base
16 ./.svn/tmp
24 ./.svn/prop-base
188 ./.svn
24 ./areminder/.svn/text-base
4 ./areminder/.svn/props
4 ./areminder/.svn/tmp/text-base
4 ./areminder/.svn/tmp/props
4 ./areminder/.svn/tmp/prop-base
16 ./areminder/.svn/tmp
12 ./areminder/.svn/prop-base
68 ./areminder/.svn
92 ./areminder
48 ./enc
8 ./calllimit
804 .
[root@localhost agi-bin]#
# Adding the -h flag will have the Disk Size printed out in human readable format
[root@localhost agi-bin]# du -h
132K ./.svn/text-base
4.0K ./.svn/props
4.0K ./.svn/tmp/text-base
4.0K ./.svn/tmp/props
4.0K ./.svn/tmp/prop-base
16K ./.svn/tmp
24K ./.svn/prop-base
188K ./.svn
24K ./areminder/.svn/text-base
4.0K ./areminder/.svn/props
4.0K ./areminder/.svn/tmp/text-base
4.0K ./areminder/.svn/tmp/props
4.0K ./areminder/.svn/tmp/prop-base
16K ./areminder/.svn/tmp
12K ./areminder/.svn/prop-base
68K ./areminder/.svn
92K ./areminder
48K ./enc
8.0K ./calllimit
804K .
[root@localhost agi-bin]#
# If we wanted to know how much space the voicemail directory is using we can use the following command
[root@localhost agi-bin]# du -h /var/spool/asterisk/voicemail/
4.0K /var/spool/asterisk/voicemail/device
8.0K /var/spool/asterisk/voicemail/
[root@localhost agi-bin]#
# Find which directory is using up the most storage space in /var/spool/asterisk
[root@localhost ~]# cd /var/spool/asterisk/
[root@localhost asterisk]# du -cks * | sort -rn
52 total
20 sysadmin
8 voicemail
4 tmp
4 system
4 outgoing
4 monitor
4 meetme
4 fax |