Aug 082012
 

Today I want to share with you some of my favorite features of bash, I called them hidden because I’ve discovered that a lot of people don’t know or don’t use them, but to be honest they are not so hidden after all, they are in the man page of bash, but how many of us have read it all ?

1) xkcdcom-149-2

Thanks to xkcd.com for this explanation.
In short this is useful when you need root access for a command and you forget to use sudo.
The parameter “!!” is substituted with the last run command.

Continue reading »

flattr this!

Jun 022012
 

Article based on the work of  Angelo D’Autilia  posted on Salug Journal in Italian.

An useful tool for the management of a shared server is etckeeper.
This software is a collection of bash scripts that allow you to control through a distributed revision system our directory /etc/ where there are the configuration files of most of our Linux daemons. You could do the same thing without etckeeper leaning on a revision system such as darcs or git, but you must remember that for this directory is essential to maintain, for each file, its permissions and also its owner and group as well as the entire structure including empty directory.

Etckeeper helps us in the management, automating many of these tasks. Continue reading »

flattr this!

Aug 292010
 

ImageMagick Usually when we talk about programs for editing images we think to graphic programs such as The Gimp or photoshop, but they are not the only alternative.

ImageMagick is a suite of programs that you can use from command line to change and transform images, may seem more uncomfortable but it is actually a very powerful option to process many images in a short time or include image processing programs in web or bash scripts.

Continue reading »

flattr this!