Web Hosting Forum Login
Not a member yet? Sign up

How to check your disk space usage if it is near full?

  • HOME
  • FORUMS
  • WEB DESIGN
  • WEB HOSTING OFFERS
  • ADVERTISING
  • FIND A HOST
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2016
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thumbs Up/Down
    Received: 1/0
    Given: 10/0

    How to check your disk space usage if it is near full?

    How can I check my disk space storage if it is near full via SSH with commands? I am afraid my disk on my VPS hosting will be full soon because I upload too many files to it today.

  2. #2
    Join Date
    Apr 2016
    Location
    Perth, Australia
    Posts
    58
    Thanks
    1
    Thanked 18 Times in 15 Posts
    Thumbs Up/Down
    Received: 28/0
    Given: 4/0
    Hi timothykiko,

    If you run the command "df -h", you'll see how much space you have used.

    You could also download and use a disk usage analyser package like Ncdu.

    It's relatively easy to install and is user-friendly.
    ZenHosting
    Cheap Domains | Economy, Business & Reseller Web Hosting | Superior Australian Service

  3. #3
    Join Date
    Dec 2016
    Location
    Midwest USA
    Posts
    240
    Thanks
    22
    Thanked 11 Times in 11 Posts
    Thumbs Up/Down
    Received: 92/0
    Given: 35/0
    Yes, use df -h the command df - report file system disk space usage, the -h flag is for human readable, so the output will display in GB for each partition.
    Energized Web Hosting
    Shared Hosting | Reseller Hosting | VPS | Domain Names
    Ministry Web Hosting

  4. #4
    Join Date
    Jul 2016
    Location
    Hertfordshire, UK
    Posts
    680
    Thanks
    33
    Thanked 151 Times in 132 Posts
    Thumbs Up/Down
    Received: 308/3
    Given: 117/3
    I agree with ZenHosting Ncdu is a excellent but if you want to dig down in as much detail as possible I would suggest you try the find command also.

    You can use find piped into various commands to achieve the same thing, here is a nice little example of using find to display all files larger on / than a certain file ordered by file size.

    Code:
     find / -size +1M | xargs ls -lh | sort -k 5 -n -r | awk '{ $1="";$2="";$3="";$4="";$6="";$7="";$8="";print}'
    output

    Code:
        128M    /sys/devices/pci0000:00/0000:00:02.0/resource0_wc
        128M    /sys/devices/pci0000:00/0000:00:02.0/resource0
        128T    /proc/kcore
        33M    /var/lib/apt/lists/ftp.uk.debian.org_debian_dists_jessie_main_binary-amd64_Packages
        32M    /var/lib/apt/lists/ftp.uk.debian.org_debian_dists_jessie_main_source_Sources
        23M    /usr/lib/x86_64-linux-gnu/libicudata.so.52.1
        23M    /var/cache/apt/srcpkgcache.bin
        23M    /var/cache/apt/pkgcache.bin
        22M    /var/lib/apt/lists/ftp.uk.debian.org_debian_dists_jessie_main_i18n_Translation-en
        21M    /var/cache/apt/archives/g++-4.9_4.9.2-10_amd64.deb
        18M    /var/lib/mysql/ibdata1
        17M    /usr/lib/gcc/x86_64-linux-gnu/4.9/cc1plus
        16M    /usr/lib/gcc/x86_64-linux-gnu/4.9/cc1
        15M    /usr/lib/gcc/x86_64-linux-gnu/4.9/lto1
        15M    /boot/initrd.img-3.16.0-4-amd64
        15M    /var/log/installer/cdebconf/templates.dat
        12M    /usr/sbin/mysqld
        6.2M    /lib/udev/hwdb.bin
        5.2M    /var/cache/apt/archives/gcc-4.9_4.9.2-10_amd64.deb
        5.1M    /usr/share/doc/gcc-4.9-base/test-summaries/gcc.log.xz
        5.0M    /var/lib/mysql/ib_logfile0
        5.0M    /var/lib/mysql/ib_logfile1
        5.0M    /var/cache/apt/archives/cpp-4.9_4.9.2-10_amd64.deb
        4.9M    /var/cache/apt/archives/vim-runtime_2%3a7.4.488-7+deb8u1_all.deb
        4.7M    /usr/lib/x86_64-linux-gnu/libc.a
        4.4M    /usr/bin/aptitude-curses
        4.4M    /usr/share/doc/gcc-4.9-base/test-summaries/g++.log.xz
        4.3M    /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.25
        4.0M    /run/log/journal/17683b8ea2354c169d44e88986b5d099/system.journal
        4.0M    /sys/devices/pci0000:00/0000:00:04.0/resource1
        3.8M    /usr/share/GeoIP/GeoIPv6.dat
        3.7M    /usr/bin/python2.7
        3.6M    /usr/bin/mysql_client_test
        3.5M    /usr/bin/mysqltest
        3.5M    /usr/share/i18n/locales/C
        3.4M    /usr/bin/mysql
        3.4M    /var/cache/apt/archives/binutils_2.25-5_amd64.deb
        3.3M    /usr/bin/mysql_upgrade
        3.3M    /usr/bin/mysqldump
        3.3M    /usr/bin/mysqlbinlog
        3.3M    /var/cache/apt/archives/mysql-server-core-5.5_5.5.53-0+deb8u1_amd64.deb
        3.3M    /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0
        3.2M    /usr/bin/mysqlslap
        3.2M    /usr/bin/mysqlshow
        3.2M    /usr/bin/mysqlimport
        3.2M    /usr/bin/mysqlcheck
        3.2M    /usr/bin/mysqladmin
        3.2M    /usr/bin/myisamchk
        3.2M    /usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.a
        3.1M    /usr/bin/myisampack
        3.1M    /usr/bin/myisamlog
        3.1M    /usr/bin/myisam_ftdump
        3.1M    /var/cache/debconf/templates.dat-old
        3.1M    /var/cache/debconf/templates.dat
        3.0M    /boot/vmlinuz-3.16.0-4-amd64
        3.0M    /usr/share/file/magic.mgc
        3.0M    /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a
    UK Web Hosting | Reseller Hosting | VPS | Domain Registration | Affiliates
    100% Cloud Powered | 30 Day Money Back Guarantee | cPanel | 365 Day UK Support
    https://www.ljshost.com

Newer Threads

  1. Emily Routledge
    Using a Server as a Desktop?
    By Emily Routledge in forum Web Hosting
    Chris Robinson
    Replies: 16 | Views: 369
    Last post by Chris Robinson, 01-20-2017, 10:14 PM
  2. Philippe Gaucher
    TheHost
    Replies: 8 | Views: 159
    Last post by TheHost, 01-15-2017, 01:39 PM
  3. Dr. McKay
    energizedit
    Replies: 3 | Views: 99
    Last post by energizedit, 01-11-2017, 02:07 PM
  4. PaulAdam
    PaulAdam
    Replies: 0 | Views: 151
    Last post by PaulAdam, 01-11-2017, 09:47 AM

Older Threads

  1. timothykiko
    Check HDD info via SSH
    By timothykiko in forum VPS Hosting
    RDO Servers
    Replies: 1 | Views: 129
    Last post by RDO Servers, 01-11-2017, 11:48 AM
  2. Gecko
    Gecko
    Replies: 16 | Views: 585
    Last post by Gecko, 01-21-2017, 12:01 AM
  3. Namerie
    Namerie
    Replies: 12 | Views: 152
    Last post by Namerie, 01-15-2017, 03:49 AM
  4. hostuto
    RDO Servers
    Replies: 2 | Views: 209
    Last post by RDO Servers, 01-10-2017, 11:56 PM

Latest Threads

  1. UH-Peter
    UH-Peter
    Replies: 0 | Views: 11
    Last post by UH-Peter, Yesterday, 09:28 PM
  2. Mihai B.
    LJSHost
    Replies: 1 | Views: 28
    Last post by LJSHost, Yesterday, 04:48 PM
  3. Moebuntu
    Moebuntu
    Replies: 4 | Views: 115
    Last post by Moebuntu, Yesterday, 03:23 PM
  4. DefaultUser
    24x7CSM
    Replies: 4 | Views: 128
    Last post by 24x7CSM, Today, 02:04 AM
  5. hostingcoupons
    EcommIndiaCloudIT
    Replies: 3 | Views: 103
    Last post by EcommIndiaCloudIT, Yesterday, 11:46 PM

Similar Threads

  1. magicandre1981
    Linux Check Disk Space Command
    By magicandre1981 in forum VPS Hosting
    LJSHost
    Replies: 2 | Views: 293
    Last post by LJSHost, 08-23-2016, 09:03 AM
  2. Little Alien
    Show full url in Chrome
    By Little Alien in forum General Discussion
    Marc A
    Replies: 2 | Views: 295
    Last post by Marc A, 08-06-2016, 05:20 AM
  3. Mihai B.
    VirtuBox
    Replies: 3 | Views: 233
    Last post by VirtuBox, 08-03-2016, 05:29 PM
  4. web3k
    web3k
    Replies: 0 | Views: 138
    Last post by web3k, 07-04-2016, 10:03 PM
  5. WorkerBee
    Luxin Host
    Replies: 5 | Views: 280
    Last post by Luxin Host, 06-26-2016, 04:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Web Hosting Forum

ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Community

The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!
Copyright ©2017, ForumWeb.Hosting. All rights reserved. Web Hosting Forum for webmasters, web hosting providers, designers and web developers.

Welcome to Forum Web Hosting

The World's Number 1 Web Hosting Community, Reviews & Services

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!