Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (17 sloc) 0.555 kb
<h2>Useful Linux Commands</h2>
1. Who's listening on port 80?
sudo lsof -t -i :80
2. Who's talking to a remote port 11300?
netstat -pal | grep 11300
3. Incoming web requests
ngrep -q "POST|GET"
ngrep -q "POST|GET" | egrep "(POST|GET) /"
4. Incoming and outgoing web traffic
tcpdump "port 80" -X -s 1024
5. Who's blocking port access?
/sbin/iptables -L
/sbin/iptables -F # flush iptables
6. Who's the main www process?
ps -e | grep www
7. Start gdb by process name
gdb --pid=`ps -eo pid,comm | grep www | cut -d' ' -f1`
Jump to Line
Something went wrong with that request. Please try again.