first open your favorite terminal emulator (I prefer terminator) and enter in this command

[codesyntax lang="bash" lines="no"]

tweet(){ curl -u “$1″ -d status=”$2″ “http://twitter.com/statuses/update.xml”; }

[/codesyntax]

then just simply tweet your message using the following format

$ tweet username “Your Message is in quotes”

Really, it’s just that simple!

There’s ton’s more tricks like this over at Commandlinefu.com which is where I picked up this little jem!

http://www.commandlinefu.com/commands/view/3165/update-twitter-via-curl-as-function