Tag Archive | "bash"

Understanding and Preventing Fork Bombs

Wednesday, October 7, 2009

0 Comments

A fork bomb is just a bash function that gets called recursively. Once a fork bomb is active on a machine it may not be able to preform normally until a reboot is made, as the only solution to the fork bomb is to kill all its processes. Bash Functions A fork bomb is really [...]

Continue reading...

Howto Add time And Date To Your Bash History

Wednesday, August 12, 2009

0 Comments

This comes in very handy if your trying to track back when you had last run something. To enable it just simply add export HISTTIMEFORMAT="%h/%d - %H:%M:%S " to your .bashrc file echo 'export HISTTIMEFORMAT="%h/%d - %H:%M:%S "' >> ~/.bashrc Then reload your .bashrc source ~/.bashrc Now when you run history you should get a [...]

Continue reading...

Creating aliases in bash

Saturday, May 23, 2009

0 Comments

Are you tired off typing out full commands? if so aliases can save you time. They allow you to shorten long commands down into one word. To add a alias edit ~/.bashrc nano ~/.bashrc Then come to the bottom of that file and add your aliases like this: alias rm = "rm -i" alias lightyrestart [...]

Continue reading...