Showing posts from August, 2008

Pakoda mail - tutorial ?

Once in September of 2006 when the North Carolina weather was in a cusp of thundering rains and dry autums, I ventured to my kitchen to fry up some snacks. Here is the writeup on that effort and the thought proess behind the courage :)

One fine day the gods above blessed me with about 200 gms of 'Baisan'. Not to waste such a fortunate opportunity, I pondered over the best way to use this yellow, weired smelling, soft powder. My first thought was to use it on my face and get a better complexion. After a quick glance in the mirror I realized I was already looking quite handsome, and the pseudo-brown complexion has quite a charm of its own here in US. Then I invited some of the not so great brains from all over the world to help me put this thing to good use. After some brain storming with my friends in Raleigh, California, Gurgaon, Delhi and even B'lore, I quickly realized that I needed some more grey power to get me over this predicament. So I followed the advice given in th…

Clean your tracks well

I have been doing lots of mischievous stuff on a Linux machine , and had to be sure that I clean my tracks properly. While playing with bash history every one seems to know that "history -c" command clears the history. But on seldom occasions I could see that my bash history was getting restored magically sans few last commands.

Digging deeper in the man pages, I realized that bash history is stored in not one but two places.
.bash-history file in user home.As an in-memory file.Now this brings some interesting possibilities as the in-memory file is written back to the .bash-history at times (when a user terminal closes for once). With the new found knowledge I devised a way to wipe out my bash history for sure. You need to take care of three things,Open only one terminal for the user whose history you want to remove.Delete ~/.bash-history history -c commandTa da !! I haven't seen the history coming back again ever. Back to my mischievous stuff :)