2 added 2 characters in body
source | link

If you have a feel for the actual size of the file you can findfind files larger than a specific size.

Eg, to find files larger than 10 MiB:

find /mounted/drive -size +10M

Or

find /mounted/drive -size +10M -exec ls -lh {} +

Httqm's suggestion is also good if the problem isn't one big file but a large collection of smaller files. That is either ofuse du to show directory totals. Limiting with --max-depth is very useful with large directory trees:

du -m some/directory --max-depth=1 | sort -nr | head -20
du some/directory --max-depth=1 | sort -n | tail -21

Will break a single directory down into sub-directories, the second of these gives you the total for the directory you're listing as well.

If you have a feel for the actual size of the file you can find files larger than a specific size.

Eg, to find files larger than 10 MiB:

find /mounted/drive -size +10M

Or

find /mounted/drive -size +10M -exec ls -lh {} +

Httqm's suggestion is also good if the problem isn't one big file but a large collection of smaller files. That is either of:

du -m some/directory --max-depth=1 | sort -nr | head -20
du some/directory --max-depth=1 | sort -n | tail -21

Will break a single directory down into sub-directories, the second of these gives you the total for the directory you're listing as well.

If you have a feel for the actual size of the file you can find files larger than a specific size.

Eg, to find files larger than 10 MiB:

find /mounted/drive -size +10M

Or

find /mounted/drive -size +10M -exec ls -lh {} +

Httqm's suggestion is also good if the problem isn't one big file but a large collection of smaller files. That is use du to show directory totals. Limiting with --max-depth is very useful with large directory trees:

du -m some/directory --max-depth=1 | sort -nr | head -20
du some/directory --max-depth=1 | sort -n | tail -21

Will break a single directory down into sub-directories, the second of these gives you the total for the directory you're listing as well.

1
source | link

If you have a feel for the actual size of the file you can find files larger than a specific size.

Eg, to find files larger than 10 MiB:

find /mounted/drive -size +10M

Or

find /mounted/drive -size +10M -exec ls -lh {} +

Httqm's suggestion is also good if the problem isn't one big file but a large collection of smaller files. That is either of:

du -m some/directory --max-depth=1 | sort -nr | head -20
du some/directory --max-depth=1 | sort -n | tail -21

Will break a single directory down into sub-directories, the second of these gives you the total for the directory you're listing as well.