Tuesday, January 15, 2008

Tar Commands

tar -cvf file.tar directory_to_compress
tar -xvf file.tar
tar -xzvf file.tar.gz
tar -jxvf file .bz2

Globaly replace a string in VIm

:1,$s/200001/5000/g


scp SourceFile user@host:directory/TargetFile
scp user@host:folder/SourceFile TargetFile

find / -name core | xargs /bin/rm –f

find . -name "*.*" | xargs grep capc_aaa_udp |more