Zum Inhalt springen

Developer Snippets

My little Snippet library.

Neueste Beiträge

  • JS: Mask all except the last four digits
  • Docker, check all log files
  • Delete *.log files older then 30 days
  • Find Files by Age and copy them to another directory
  • Search with grep and zip file results

Kategorien

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

Schlagwort: Administration

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 2019Kategorien #!/bin/bash, LinuxSchlagwörter Administration, Bash, Linux
Stolz präsentiert von WordPress