DEFINITIONS

Definitions More Info.
Definition ID626
TitleLINUX
CategoryNOTES
Definitionzip programs gunzip,gzip,tar
Definition DescriptionThe files you actually download will typically be compressed into an archive, much like PKZip or WinZip files you can download for Windows systems. There is even a zip-like program for Linux/UNIX called gzip (GNU zip). (Most Linux and UNIX distros include the gzip/gunzip utilities.) gziped files typically have .gz at the end. The command to uncompress and extract a gzip-ed file is: gunzip file-name.tar.gz PKZip and WinZip do two things. They combine multiple files into a single archive and then they compress it. With Linux/UNIX this is a two step process. gzip handles the compression and tar handles the combining. tar is the utility that combines/extracts multiple files but it doesn't do any compression. Some download files aren't compressed because they're not all that big. If the file you download is an uncompressed archive of multiple files, it will likely have a .tar extension. Such files are called "tar balls". The command to extract a tar ball is tar -xvf file-name.tar One thing to note about tar is that it maintains the directory tree structure during extraction if subdirectories are included in the combining process. A file that has been combined and compressed may have two "extensions". If you see a file name that ends in .tar.gz or simply .tgz you have to first gunzip it, which will remove the .gz from the end of the file name. Then you extract that file using tar. Newer versions of tar can handle both the uncompressing and extracting. If you have a file with a .gz extension try entering this command:

tar -zxvf file-name.tar.gz

tar -czvf KNETADYLIST.tar.gz (tar adi) KNETADYLIST(tarlanacak dosya)

tar -czvf /backup/storage/backup/sirius_hede.tar.gz sirius_hede/
RecordBycunay
Record Date16-02-2015 16:55:52
Düzenle
Kopyala
Sil