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 CONNECT THE PS3 CONTROLLER TO THE NINTENDO SWITCH

HOW TO CONNECT THE PS3 CONTROLLER TO THE NINTENDO SWITCH

Our family has a Nintendo Switch with only the 2 Joycon controllers that came with the Switch. I decided to look at getting extra controllers but I noticed we had 2 PS3 controllers from the Sony Playstation 3. After some research, I discovered there are Bluetooth dongles that allow the PS3 controllers to connect to […]

read more
OPENING THE JABRA ROX HEADSET – WHERE IS THE BATTERY!

OPENING THE JABRA ROX HEADSET – WHERE IS THE BATTERY!

My Jabra Rox headset wasn’t charging anymore so I decided to find out where the battery was located and to see if it was easy to replace. I was advised by Jabra support the battery cannot be replaced and after opening up the unit I can see why. There were a few steps I used […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

Social Wall Social Wall