Wie man die 10 größten Dateien in einem Verzeichnis mit einem Linux-Shell-Befehl findet
Ohne Rekursion
find-largest-files.sh
find . -maxdepth 1 -type f -exec du -h {} + 2>/dev/null | sort -rh | head -n 1Mit Rekursion
find-largest-files-recursive.sh
find . -type f -exec du -h {} + 2>/dev/null | sort -rh | head -n 10Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow