What's a command line way to find large files/directories to remove and free up space?

Linux Server Management Tips and Tricks
Post Reply
arnlweb
Site Admin
Posts: 96
Joined: Wed Jun 22, 2016 1:28 pm
Location: India
Contact:

What's a command line way to find large files/directories to remove and free up space?

Post by arnlweb » Sat Jun 25, 2016 5:42 pm

You can find a Large files and folder using this cmd.

Code: Select all

find / -size +10M -ls
10M = 10 MB.

Then you can run this cmd to remove files,

Code: Select all

rm -r /filepath/yourfolder/
Hope it helps.

Post Reply