Friday, January 22, 2010

awk RE range

awk '/MESSAGE: 2010-01-20/,/MESSAGE: 2010-01-21/ { print }' info.log > info.txt

Tuesday, January 12, 2010

nbtstat in Windows

Displays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP).

NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n] [-r] [-R] [-RR] [-s] [-S] [interval] ]

  -a   (adapter status) Lists the remote machine's name table given its name
  -A   (Adapter status) Lists the remote machine's name table given its IP address.

Friday, January 8, 2010

Hardware info in Ubuntu (Linux)

cat /proc/cpuinfo
cat /proc/meminfo
dmesg
lspci