Sunday, January 28, 2007

Noclobber ,tar , gunzip , gzip

Override is when u save a file name as bri.txt , nest time save file same name as given above , so it will override ur previous file , To protect this we can use some commands .
Command used to protect the file from override
set -o nocloober ----> This command will protect ur file
To deactive
set +o noclobber
How to create a tar file ?

tar cvf ( c for create , v for verbous , f -> file )
tar cvf filename.tar
To extract the file from tar
tar xvf file.tar
How to create gunzip > gzip bri.tar . to extarct from gzip use gunzip bri.txt.tar.gzip
From bzip use the option 'j' in tar ..

No comments:

Post a Comment

Powered By Blogger