Bash scripting notes
Find and delete all .svn directories
find . -type d -name .svn -exec rm -rf {} \;
- The -type d specifies only directories.
Serve the current directory at http://localhost:8000/
python -m SimpleHTTPServer
Quickly backup or copy a file
cp filename{,.bak}
Quickly rename a file
mv filename.{old,new}
Matt's Traceroute
mtr google.com
Lists all listening ports together with the PID of the associated process
netstat -tlnp
Convert png to ico
- Require ImageMagick to be installed
convert favicon_32x32.png -resize 32x32! favicon.ico