cool commands

All posts tagged cool commands

Forgot where I found this originally, but it’s definitely worth sharing.

 

Save as wikiquery.sh.  chmod 755 wikiquery.sh or /bin/bash wikiquery.sh

./wikiquery.sh linux

“Linux ( or ) is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of Linux is the Linux kernel, an operating system kernel first released 5 October 1991 by” ” Linus Torvalds. http://en.wikipedia.org/wiki/Linux”

Just figured this out and in the past I would either do two for loops ..one for 01 Р09 and other 10 РX.  Figured there had to be a better way, and sure enough this is..

servername01p
servername02p
servername03p
servername04p
servername05p
servername06p

.

.

.

servername49p
servername50p

Realtime utility that will help show the TCP connection states a TCP connection goes through as it works it’s way to established connection then tears itself back down. Also displays source/destination and bandwidth usage. Has ability to read from pcap files.

Examples of usage:

# tcptrack -i eth0
# tcptrack -i eth0 port 80
# tcptrack -T filename.pcap