Month: October 2009

Custom Terminal Prompt

For those who do not know what a terminal prompt is (bash shell prompt), it’s the thing you see when you open up the terminal. The default looks like “user@host: directory $” or in my case that would be “rw@kaper:~$”. You can make it look like anything you want to. The file we are going…


Matrix like screen…

tr -c “[:digit:]” ” ” < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"


Set audible alarm when an IP returns online

ping -i 60 -a IP_address Waiting for your server to finish rebooting? Issue the command above and you will hear a beep when it comes online. The -i 60 flag tells ping to wait for 60 seconds between ping, putting less strain on your system. Vary it to your need. The -a flag tells ping…


Execute a command without saving it in the history

‘spacebar’ command This is sample output – yours may be different. $ echo this goes to history this goes to history $ echo this wont go to history this wont go to history $ history 1 echo this goes to history 2 history Prepending one or more spaces to your command won’t be saved in…


Search google from CLI

perl -e ‘$i=0;while($i<10){open(WGET,qq/|xargs lynx -dump/);printf WGET qq{http://www.google.com/search?q=site:g33kinfo.com&hl=en&start=$i&sa=N},$i+=10}’|grep ‘//g33kinfo.com/’ curl -A Mozilla http://www.google.com/search?q=Linux |html2text -width 80 html2text http://www.google.com/search?q=searchtermhere dig +short txt linux.wp.dg.cx -wikipedia search check gmail from command line curl -u username –silent “https://mail.google.com/mail/feed/atom” | perl -ne ‘print “\t” if //; print “$2\n” if /< (title|name)>(.*)< \/\1>/;’


Want to send yourself a file quickly?

If your mail server is properly set up then you can go: mail -s “Boo Boo” [email protected] < file.txt


Check Ubuntu Version

Quick CLI command to check your version of ubuntu sudo lsb_release -a


Faster Ubuntu Upgrade

When the new version of Ubuntu (9.10) is released, thousands of people connect their computers to the Ubuntu servers to complete the upgrade. Even on a fast internet connection, downloading new versions of almost all current applications will take a long time. Coupled with everyone else trying to download from the same place at the…


Ctrl+Alt+Del to open System Monitor in Ubuntu

If you want to enable Ctrl+Alt+Del to open System Monitor you have to do this: Go to System->Preferences->Keyboard Shortcuts and search for “Logout” action (that is under Desktop actions) and you will see that Ctrl+Alt+Del combination is associated to Logout shortcut. You have to click on that shortcut and press Backspace if you want to…


ClamTk 4.20

ClamTk is a GUI frontend for ClamAV. ClamTk is a GUI front-end for ClamAV antivirus projects, using Gtk2-perl. It is designed to be an easy-to-use, point and click virus scanner for Linux systems. Requirements: · Gtk2-Perl Author/Maintainer : ClamTk Team Home Page : http://clamtk.sourceforge.net/index.html Changelog : http://sourceforge.net/projects/clamtk/ Screenshot : http://sourceforge.net/dbimage.php?id=79490 Download [ 4.20 ] :…