|
|
work with tar.gz files |
| if the file is a: filename.tar | type: tar xvf filename.tar |
| if the file is a: filename.tar.gz | type: tar xvfz filename.tar.gz |
| if the file is a: filename.tar.gz and you like to make a filename.tar of it | type: gzip -d filename.tar.gz |
| if the file is a: filename.tar.bz2 | type: tar jxvf filename.tar.bz2 |
| make a tar file | type: tar cvf filename.tar * |
|
for filename you can take evry name you like the * meens that it backups ervy file and directorie in the directorie where you are at that moment. | |
| make a tar.gz file if you have allready a filename.tar | type: gzip -9 filename.tar |
|
now you have a filename.tar.gz the -9 is the power of zipping. you can use 0 to 9 here 9 is good zip and slow 0 is bad zip but fast | |
| make a tar.gz file |
type: tar cvfz filename.tar * |
| here is de cvfz the command to make a tar.gz file and the * is de pad of the file's an directories you also can type: tar cvfz filename.tar.gz /root/mpg now it backup's and zips all the files and diretories in de dir /root/mpg | |
| make a tar.bz2 file |
type: tar jcvf filename.tar.bz2 * |
| here is de jcvf the command to make a tar.gz file and the * is de pad of the file's an directories you also can type: tar jcvf filename.tar.gz /root/mpg now it backup's and zips all the files and diretories in de dir /root/mpg |