17/12/2016

Find the largest file in a directory and its subdirectories Linux


Find the largest file in a directory and its subdirectories using the find command

Type the following GNU/find command:

## Warning: only works with GNU find ##
find /path/to/dir/ -printf '%s %p\n'| sort -nr | head -10
find . -printf '%s %p\n'| sort -nr | head -10

Không có nhận xét nào:

Đăng nhận xét