AlferSoft Blog

Explaining this blog in a few words since 1999
  • Home
  • Electronic Projects
  • Hardware repairing
  • Software Applications
    • Linux FAQ
  • Software Development
    • Programming FAQ

Archive

Posts Tagged ‘used’

How to calculate the space used by files in Linux?

February 19th, 2010 fvicente No comments

Suppose that you want to calculate the space used by all the png files in current directory and all its subdirectories. From a terminal type:

find . -name '*.png' -exec du -ab {} \; | awk '{total+=$0}END{print total}'

Image source
Categories: Linux FAQ Tags: awk, calculate, files, find, linux, occupied, pattern, space, sum, used
RSS
  • Google
  • Youdao
  • Xian Guo
  • Zhua Xia
  • My Yahoo!
  • newsgator
  • Bloglines
  • iNezha

Random Posts

  • Converting Visual Studio solutions to SCons
  • USocket – USB controlled Socket with PIC18F4550
  • Asterisk PBX with X100P Clone (Part 1: Installation)
  • (HTML) Table cell not inheriting style
  • Firefox add-on: UploadProgress

Tag Cloud

asterisk CDC circuit clone code config convert cut debian development electronic files firmware images install intel javascript linux make makefile mod_python optimization parallel PIC PIC16F4550 pictures port progress project prototype python rotate rxtx scanned scons scriptaculous setup socket ubuntu upload USB visual studio window wxpython x100p

Categories

  • Electronic Projects
  • Hardware repairing
  • Software Applications
  • Software Development

Translator

Archives

  • August 2010
  • June 2010
  • February 2010
  • June 2009
  • May 2009
  • March 2009
  • November 2008
  • July 2008
  • June 2008
  • May 2008

Meta

  • Register
  • Log in
Top WordPress
Copyright © 2008-2010 AlferSoft Blog
Theme by NeoEase. Valid XHTML 1.1 and CSS 3.