dinsdag 6 oktober 2009

Command line fu

these are a list with more complex commands i regularly use with a description of what it does

execute the last command but with sudo priveliges
sudo !!

download the entire site www.example.com as it is presented to an anonymous user using a mozilla browser

wget --random-wait -r -p -e robots=off -U mozilla http://www.example.com

get stats on the network-speed to a host

mtr hostname

twitter from command line (very usefull to keep track of machines)
this twitters the output of the command "uptime"

curl -u mytwitterusername:mypassword -d status="my uptime:`uptime`" http://twitter.com/statuses/update.json

more info here: http://mark.koli.ch/2009/05/howto-tweet-from-the-command-line-with-curl.html

enable passwordless ssh the easy way

ssh-copy-id user@remote-machine

make shift alarm clock

sleep 8h; cat /dev/urandom > /dev/dsp

Geen opmerkingen: