AlferSoft Blog

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

Archive

Posts Tagged ‘sum’

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

  • POIMan for Sygic
  • (HTML) Table cell not inheriting style
  • How do I add VNC to Terminal Server Client in Ubuntu?
  • Protoboard adapter for cheap Bluetooth module
  • Motherboard BIOS not saving changes

Tag Cloud

android Arduino assembler atmel attiny attiny45 avr bluetooth CDC circuit code convert debian development Duemilanove electronic files firmware hack intel javascript linux module mod_python optimization parallel PIC PIC16F4550 plugin pong port progress project python rxtx scons scoreboard serial socket ubuntu upload USB VGA video wxpython

Categories

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

Translator

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • September 2011
  • August 2011
  • July 2011
  • April 2011
  • March 2011
  • February 2011
  • November 2010
  • 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-2012 AlferSoft Blog
Theme by NeoEase. Valid XHTML 1.1 and CSS 3.