gzip tar purpose
play

gzip, tar Purpose file archiving -compressing multiple files into - PowerPoint PPT Presentation

Unix/Linux Commands: gzip, tar Purpose file archiving -compressing multiple files into one smaller file -extracting/decompressing files from an archive -makes sharing files easier tar deals with its own format (.tar) Usage: gzip gzip


  1. Unix/Linux Commands: gzip, tar

  2. Purpose file archiving -compressing multiple files into one smaller file -extracting/decompressing files from an archive -makes sharing files easier tar deals with its own format (.tar)

  3. Usage: gzip gzip [options] [path ... ] examples: gzip fileToCompress gzip -d fileToDecompress gzip -r directoryToRecursivelyCompress gzip -c fileToCopyCompress > newArchiveName

  4. Options: gzip -c, --stdout writes output to stdout (files unchanged) -d, --decompress extract files from archive -r, --recursive recursively act on all in the directory

  5. Options: gzip (cont.) -S .suf, --suffix .suf end compressed file with .suf rather than .gz -1-9, --fast, --best set compression speed/quality from faster, less compression to better, slower compression

  6. Usage: tar tar [functions] [options] [path … ] examples: tar -c -f newArchiveName fileOrDirToCompress tar -cf newArchiveName fileOrDirToCompress tar cf newArchiveName fileOrDirToCompress tar tf archiveToListFilesOf tar xf archiveToDecompress

  7. Functions: tar -c, --create create new archive -t, --list list files in archive -x, --extract, --get extract files from archive

  8. Options: tar -f, --file=archiveName specify name of archive to compress to --overwrite overwrite files when extracting

  9. Demonstration

Recommend


More recommend