<< Back to blogging...
Visual Studio 2005 - OutputPath property is not set >>

Personal Linux cheat sheet

2012-11-23 13:19:40
This looks like a good place to store my own list of Linux commandos I always need but sometimes forget...

List the ports in use
netstat -anltp | grep "LISTEN"

Speed up SSH login
$ sudo -i
$ echo UseDNS no >> /etc/ssh/sshd_config
$ /etc/init.d/ssh restart

Change ip number "on the fly"
sudo ifconfig eth1 111.222.333.444

Make read-only writable
sudo mount -o remount,rw /

Set correct time and keep it stored even after restart
sudo date -s 12:13:14
sudo hwclock --systohc

Tshark trace incoming HTTP requests
sudo tshark -i eth0 -R 'http.request'