Bash scripting notes

Find and delete all .svn directories

find . -type d -name .svn -exec rm -rf {} \;

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

convert favicon_32x32.png -resize 32x32! favicon.ico

Browse Space

- Pages
- Blog
- Labels
- Attachments
- Bookmarks
- Mail
- Advanced

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

 

Other Features

Add Content