Zum Inhalt springen
Developer Snippets

Developer Snippets

My little Snippet library.

Neueste Beiträge

  • Delete *.log files older then 30 days
  • Find Files by Age and copy them to another directory
  • Search with grep and zip file results
  • Search for a string in files and save the result
  • Zip files and exclude subdirectories

Kategorien

  • .git
  • #!/bin/bash
  • Allgemein
  • Docker
  • HTML5
  • Linux
  • Odoo
  • PHP
  • Terminal / Shell / Cli
  • Windows

Show me directories with the largest disc usage.

du -a ./ | sort -n -r | head -n 20

Its always searching for the directories with the most diskusage from the actual directory, sorted by usage. It shows the first 20 Lines

Veröffentlicht am 9. September 2019Autor Alexander StroschkeKategorien #!/bin/bash, LinuxSchlagwörter Administration, Bash, Linux

Beitrags-Navigation

Zurück Vorheriger Beitrag: Docker commands to clear some things
Weiter Nächster Beitrag: Encrypt Bitlocker Drive in Linux
Stolz präsentiert von WordPress