Daily Archives: 2011-03-07

Top ten disk space hogs in current folder

du -cks *|sort -rn|head -11|awk ‘{printf “%-8.2f MiB\t%s\n”, $1/1024, $2}’ NB: first item is the total size, so it outputs eleven lines. Update: a better version is this one: du -cks *|sort -rn|head -11|awk ‘{printf “%-8.2f MiB\t”, $1/1024;\ for(i=2; i

Posted in /dev/null, Bash, EN, Linux, Unix and unixoid | Leave a comment

WordPress/twentyten header image

Had some trouble with the built-in twentyten images. The header image is saved inside a serialized hash in the database complete with the protocol and server name as well as the blog home URI. The problem with this is if … Continue reading

Posted in EN, IT Security, Programming, Software | Tagged | Leave a comment