Showing posts with label find. Show all posts
Showing posts with label find. Show all posts

Wednesday, September 2, 2015

How to find the largest files and folders in Linux


  1. Open terminal
  2. Type

    du -a /{folder} | sort -n -r | head -n {count}
{folder} is the starting location where you want to find the largest files and folders
{count} number of results you want to see

Example

Find the top 10 files of the whole file system
du -a / | sort -n -r | head -n 10