Web Hosting Forum Login
Not a member yet? Sign up

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

  • FORUMS
  • WEB DESIGN
  • WEB HOSTING OFFERS
  • ADVERTISING
  • WEB HOSTING
  • REQUEST A HOST
  • BEST WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2016
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thumbs Up/Down
    Received: 1/0
    Given: 22/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
    64
    Thanks
    1
    Thanked 18 Times in 15 Posts
    Thumbs Up/Down
    Received: 33/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.

  3. #3
    Join Date
    Dec 2016
    Location
    Midwest USA
    Posts
    254
    Thanks
    23
    Thanked 12 Times in 12 Posts
    Thumbs Up/Down
    Received: 115/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.

  4. #4
    Join Date
    Jul 2016
    Location
    Hertfordshire, UK
    Posts
    990
    Thanks
    40
    Thanked 188 Times in 157 Posts
    Thumbs Up/Down
    Received: 478/3
    Given: 138/4
    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
    Web Hosting | Reseller | VPS
    30 Day Money Back Guarantee | cPanel | 365 Day UK Support | Free Trial
    https://www.ljshost.com

Newer Threads

  1. Emily Routledge
    Using a Server as a Desktop?
    By Emily Routledge in forum Web Hosting
    HyperVMart
    Replies: 20 | Views: 2167
    Last post by HyperVMart, 03-23-2017, 08:28 AM
  2. Philippe Gaucher
    fishmonk
    Replies: 12 | Views: 1326
    Last post by fishmonk, 08-09-2017, 02:43 AM
  3. Dr. McKay
    manoaratefy
    Replies: 4 | Views: 776
    Last post by manoaratefy, 08-10-2017, 11:04 AM
  4. MilesWeb
    MilesWeb
    Replies: 0 | Views: 394
    Last post by MilesWeb, 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: 634
    Last post by RDO Servers, 01-11-2017, 11:48 AM
  2. Gecko
    HostKoi
    Replies: 36 | Views: 7297
    Last post by HostKoi, 07-06-2017, 11:05 PM
  3. Namerie
    Al Baraa
    Replies: 14 | Views: 962
    Last post by Al Baraa, 05-09-2017, 08:52 PM
  4. hostuto
    RDO Servers
    Replies: 2 | Views: 697
    Last post by RDO Servers, 01-10-2017, 11:56 PM

Latest Threads

  1. HostColor
    HostColor
    Replies: 0 | Views: 12
    Last post by HostColor, Today, 10:48 AM
  2. Lene
    Lene
    Replies: 0 | Views: 13
    Last post by Lene, Today, 06:18 AM
  3. pau18
    pau18
    Replies: 0 | Views: 14
    Last post by pau18, Today, 12:12 AM
  4. trendjing
    24x7serverman
    Replies: 1 | Views: 20
    Last post by 24x7serverman, Today, 05:59 AM
  5. Chris Worner
    Virtualbox on Linux VPS?
    By Chris Worner in forum VPS Hosting
    LJSHost
    Replies: 2 | Views: 29
    Last post by LJSHost, Today, 02:02 PM

Similar Threads

  1. magicandre1981
    Linux Check Disk Space Command
    By magicandre1981 in forum VPS Hosting
    LJSHost
    Replies: 2 | Views: 680
    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: 853
    Last post by Marc A, 08-06-2016, 05:20 AM
  3. Mihai B.
    VirtuBox
    Replies: 3 | Views: 625
    Last post by VirtuBox, 08-03-2016, 05:29 PM
  4. web3k
    web3k
    Replies: 0 | Views: 467
    Last post by web3k, 07-04-2016, 10:03 PM
  5. WorkerBee
    Luxin Host
    Replies: 5 | Views: 621
    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!