Tuesday 31 May 2011

Bash: Find the size of a Folder from the shell

Something like this:

Will give you the size of the folder (in this case the Forests folder) in a "human readable" form, like this:

Tuesday 17 May 2011

Bash: recursive search for content in a file

Recursive search example using find, xargs and grep:

This will search all directories recursively, looking for all files containing the term "search:search"