HOW TO FIND THE LARGEST FILES OR DIRECTORIES ON YOUR VPS

October 30, 2015   /   by Marco  / Categories :  Software, Technology
HOW TO FIND THE LARGEST FILES OR DIRECTORIES ON YOUR VPS

My CentOS VPS was running out of space so I needed to do a bit of a clean up and decided to see which files and directories used up the most space. So after some digging around I found these two commands.

This one is to find the largest 10 directories:

Business Legions Find Largest Directories

This one is to find the largest 10 files:

Business Legions Find Largest Files

If you want to display more than 10 results then change the tail -10 to another amount. I then found a couple of large xml files and deleted these which freed up over 2 GB of data.

 

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


HOW TO OPEN THE METABOX P950HP BACK COVER

HOW TO OPEN THE METABOX P950HP BACK COVER

I recently needed to install a 960GB SSD Crucial Drive in my Metabox P950HP laptop and had no clue on how to do this. I tried removing all the screws from the back of the Metabox and pryed the back cover but it was stuck. I had a hunch there was something more to it […]

read more
HOW TO DISABLE WORDPRESS SLIDER REVOLUTION ON MOBILE

HOW TO DISABLE WORDPRESS SLIDER REVOLUTION ON MOBILE

For those of you who are using WordPress and the Slider Revolution plugin, did you know there is a way to disable displaying the Slider Revolution on mobile? The Slider Revolution looks great on desktop but sometimes for mobiles, the experience isn’t the greatest due to the width size (text can often become too small). So […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

Social Wall Social Wall