/
Hard Drive and Disk Management
Hard Drive and Disk Management
Disk Space of all files and directories in the current directory you are located in
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 |
Disk Space of the entire Hard Drive
df
[root@localhost agi-bin]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 56818996 3078276 50854424 6% /
tmpfs 1952500 0 1952500 0% /dev/shm
/dev/sda1 99150 25896 68134 28% /boot
[root@localhost agi-bin]#
# Adding the -h flag will have the Disk Size printed out in human readable format
[root@localhost agi-bin]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 55G 3.0G 49G 6% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 97M 26M 67M 28% /boot
[root@localhost agi-bin]# |
Unable to render {include} The included page could not be found.