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 force overwrite of output file and compress links # 强制覆盖输出文件并压缩链接
-h, --help give this help # 查看帮助信息
-k, --keep keep (don't delete) input files # 保留输入文件
-l, --list list compressed file contents # 列出压缩文件内容
-L, --license display software license # 显示软件许可证
-n, --no-name do not save or restore the original name and timestamp # 不要保存或恢复原始名称和时间戳
-N, --name save or restore the original name and timestamp # 保存或恢复原始名称和时间戳
-q, --quiet suppress all warnings # 取消所有警告
-r, --recursive operate recursively on directories # 对目录递归操作
--rsyncable make rsync-friendly archive
-S, --suffix=SUF use suffix SUF on compressed files # 在压缩文件上使用后缀SUF
--synchronous synchronous output (safer if system crashes, but slower)
-t, --test test compressed file integrity # 测试压缩文件的完整性
-v, --verbose verbose mode 详细模式
-V, --version display version number # 显示版本号
-1, --fast compress faster # 快速压缩
-9, --best compress better # 高质量压缩

With no FILE, or when FILE is -, read standard input.

例如已标准输出解压文件“Sequence.fa.gz”至当前目录

gzip -d Sequence.fa.gz -c > ./Sequence(也可已重命名为其他名称).fa # "./"表示当前路径

压缩Sequence.fa并替换原文件

gzip Sequence.fa

 

posted on 2024-02-26 16:38  caicai2019  阅读(52)  评论(0编辑  收藏  举报