Saturday, October 1, 2011

Search and Replace large files inplace

using sed

find /path/to/files -type f -exec sed -i 's/fromString/toString/g' {} \;


using perl

find /path/to/files -type f -exec perl -pi -e  's/fromString/toString/g' {} \;

Thursday, June 23, 2011

Command to see CDP packets and identify the cisco switch and port your machine is connected to

# tcpdump -nn -vvv -i eth0 -s 1500 -c 1 'ether[20:2] == 0x2000'

Tuesday, March 22, 2011

Screen Capture Fedora

For screen capture with audio I have used gtk-RecordMyDesktop

# yum install gtk-recordmydesktop

Options for selecting window or fullscreen are available.