为了保留原文件,我们需要使用--keep(或-k)选项。此外,由于我们希望将压缩后的内容输出到一个新的文件中,而不是直接替换原文件,我们还需要使用-c(或--stdout)选项,将压缩后的数据输出到标准输出。 编写命令来执行gzip压缩并保留原文件: 假设我们有一个名为example.txt的文件,希望将其压缩为example.txt.gz,同时...
Usage: gzip [OPTION]... [FILE]... Compress or uncompress FILEs (by default, compress FILES in-place). Mandatory arguments to long options are mandatory for short options too. -c, --stdout write on standard output, keep original files unchanged -d, --decompress decompress -f, --force fo...
[FILE]... Compress or uncompress FILEs (by default, compress FILES in-place). Mandatory arguments to long options are mandatory for short options too. -c, --stdout write on standard output, keep original files unchanged -d, --decompress decompress -f, --force force overwrite of output ...
-c,--stdoutwriteon standard output, keep original files unchanged -d,--decompressdecompress -f,--forceforce overwrite of outputfileand compress links -h,--helpgive thishelp-k,--keepkeep(don't delete)input files -l,--listlist compressedfilecontents -L,--licensedisplay software license -n, ...
Usage: gzip [OPTION]... [FILE]... Compress or uncompress FILEs (bydefault, compress FILESin-place). Mandatory arguments tolongoptions are mandatoryforshortoptions too.-c, --stdout write on standard output, keep original files unchanged-d, --decompress decompress-f, --force force overwrite of...
Usage:gzip[OPTION]...[FILE]...#压缩或解压缩文件,默认是压缩文件,压缩后原文件就消失了Compressor uncompress FILEs(bydefault,compressFILESin-place).Mandatoryarguments tolongoptions are mandatoryforshortoptions too.-c,--stdout write on standard output,keep original files unchanged-d,--decompress decompre...
Usage: gzip [OPTION]... [FILE]... Compress or uncompress FILEs (by default, compress FILES in-place). Mandatory arguments to long options are mandatory for short options too. -c, --stdout write on standard output, keep original files unchanged ...
Write output on standard output; keep original files unchanged. If there are several input files, the out- put consists of a sequence of independently compressed members. To obtain better compression, concatenate all input files before compressingthem. -d --decompress --uncompress Decompress. -f ...
Write output on standard output; keep original files unchanged. If there are several input files, the output consists of a sequence of independently com- pressed members. To obtain better compression, concatenate all input files before compressing them. ...
gzip filename This command compresses the specified file ‘filename’ and adds a ‘.gz’ extension to the compressed file. 3. Can ‘gzip’ retain the original file when compressing? Yes, by using the ‘-k’ or ‘–keep’ flag with ‘gzip’, the original file is retained after compressi...