To avoid that, we can pass the option or use the shell redirection. gz while keeping the same ownership modes, access, and modification times. Whenever possible, each file is replaced by one with the extension. We learned that Linux and Unix’s gzip command reduces the named files’ size using the Lempel-Ziv coding (LZ77) algorithm. Synchronous output (safer if system crashes, but slower) Save or restore the original name and timestamp Write on standard output, keep original files unchangedįorce overwrite of output file and compress linksĭo not save or restore the original name and timestamp Linux gzip/gunzip command-line summary Option Read man pages by tying the following commands: This option is useful on systems which have a limit on file name length or when the timestamp has been lost after a file transfer. When decompressing, restore the original file name and timestamp if present. Pass the -N option when compressing, always save the original file name and timestamp this is the default. This option is the default when decompressing. Remove only the gzip suffix from the compressed file name and do not restore the original timestamp if present (copy it from the compressed file). When decompressing, do not restore the original file name if present. The original name is always saved if the name had to be truncated. Pass the -n option when compressing, ask gzip /gunzip, not to save the original file name and timestamp by default. Gzip -keep my-filename.doc The -n and -Noption Fig.01: Tell gzip command to keep original file on Unix or Linux systemĪs I said earlier the simplest option is to either pass the -k or -kbd option:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |