Buscar grandes archivos en la CLI en Linux
Linux
- To find large files on Linux, use this command:
sudo du -aBm / 2>/dev/null | sort -nr | head -n 10
.
- To find the largest files in a directory, use:
du -ah /directory/name | sort -rn | head -n 10
.
- To find all files over 500 MB, use:
sudo find / -type f -size +500M -ls
.