CLI

Note to self: how to see folder size under linux?

i personally like CLI because just a few key strokes and i will get what i need. But i am bad at remembering the optiosn and commands... so this will be a note-to-self post, while hopefully it might also be helpful to you

to see folder size, the simplest way i know is to use du:

wahlau@localhost:~/ $  du

and you will get a long list of folders and the number of kilobytes of the data in the folders. so make it more "readable", just do this:

The power of CLI - selective removal of files

finally took the time to tidy up my long-deserted online photo album. But the quest now is - remove unnecessary files, and reorganize them. I realise the good old gallery 1 web album made lots of *.sized.jpg and *.thumb.jpg, so going to every directory to remove them manually will take quite some time.

so i looked around for some CLi power. and i know even though it is simple for many of you there, i don't do that often so i have to relearn this :) it is at the end rather simple. my best find was to use find (he he a pun?). it does the job pretty well:

Syndicate content

Fatal error: Call to undefined function: array_intersect_key() in /home/wahlau/domains/wahlau.org/public_html/modules/update/update.compare.inc on line 695