Uday's website
Published on Uday's website (https://uday.net)

Home > How I made space on Digital Ocean droplet

How I made space on Digital Ocean droplet [1]

Submitted by uday [2] on April 20, 2022 - 7:30pm

The droplet on Digital Ocean for my Rails project did not have any space left.

Here is how I created space by deleting files.

1. Login using SSH and check available space using $df -h

2. Check disk usage using du command.

$du -h | sort -h

This will list the directories showing the biggest size at the bottom.

I noticed that ./project/shared/log folder was consuming 3.3GB space.

3. In another terminal window, I opened sftp session.

4. sftp>cd project/shared/log

5. Now delete files using rm command.

sftp>rm uat1.log

Everything was fine after that.

Rating: 

 Valid XHTML 1.0 StrictCreative Commons LicenseVerbatim copying and redistribution of this entire page are permitted provided this notice is preserved. All content on this website including archives (including text, photographs, audio files and any other original work), unless otherwise noted, is licensed under a Creative Commons License or later.


Source URL:https://uday.net/make-free-space-on-linux

Links
[1] https://uday.net/make-free-space-on-linux [2] https://uday.net/user/1