How To Find Large Files In Linux

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/find-large-files-linux/
PINTEREST
PINTEREST
INSTAGRAM

I have linux servers that stores temprorary files. Some times clearing them became a headache how can I find large files and clear them.

There are different ways to find large files in linux. We will look with examples how to find and run command on large files below

Find Files Bigger Than 500k

We will list files bigger then 500k with their size

  • -type f is look for files
  • -szie +500k to specify size
  • -exec ls -lh {} to list files details here we can rm these files like -exec rm -Rf {}
  • awk line will print name and size of the file

List Top 10 Directories According To their Size

We will list directories according to their size with simpler command.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/find-large-files-linux/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  Linux ping Command Tutorial With Examples

Leave a Reply

Your email address will not be published.