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 just a [...]
Continue reading...Wednesday, August 12, 2009
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 output similar to the one [...]
Continue reading...Thursday, May 28, 2009
Have you ever wanted to show data from your command line but couldn't copy it? there is now a solution the script below will allow you to paste the output of commands into the tuts4tech pastebin just copy the script below and save it in /usr/bin/pastebin then you'll be able to do | pastebin e.g [...]
Continue reading...Saturday, May 23, 2009
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 = "/etc/init.d/lighttpd restart" alias server_name="ssh [...]
Continue reading...
Wednesday, October 7, 2009
0 Comments