Freeing disk space on your Linux server


To find out where disk space is being used:

  1. Get to the root of your machine by running cd /
  2. Run sudo du -h --max-depth=1
  3. Note which directories are using a lot of disk space.
  4. cd into one of the big directories.
  5. Run ls -l to see which files are using a lot of space. Delete any you don’t need.
  6. Repeat steps 2 to 5.
Last update:
20-04-2019 12:48
Author:
Karl Hudgell
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Latest FAQs RSS

  1. Simple Cheap LED Control (29-04-2019 13:26)
  2. Freeing disk space on your Linux server (20-04-2019 12:48)
  3. Dockerized Download VM (30-01-2019 20:26)
  4. Jmeter + Performance Plugin + Jenkins Pipeline (16-02-2018 12:49)
  5. MySQL DB Backup Script (04-09-2017 10:16)