Skip to main content

pregos blog

  • Blog
  • Impressum

Schlagwort: file extension

Show disk usage based on file extension / regex

31. Mai 201231. Mai 2012 prego Schreib einen Kommentar

Problem: Show disk usage of a folder and its subfolders based on the file extension / regex.

Solution:

find . -regex '.*\.tif' -print0 | du --files0-from=- -ch | tail -1

find . -regex '.*\.tif' -print0 | du --files0-from=- -ch | tail -1

[via]

Neueste Kommentare

  • Stefan bei Puppet: Hiera und Puppet – Installation, Einrichten, Moduleinbindung
  • prego bei chmod 755 rekursiv NUR auf Verzeichnisse
  • linuxfan bei chmod 755 rekursiv NUR auf Verzeichnisse

Archive

RSS

  • Beitrags-Feed (RSS)
  • Kommentare als RSS

  • Twitter
  • Github
pregos blog All rights reserved. Theme von Colorlib Powered by WordPress