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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· Apache Tomcat RCE漏洞复现(CVE-2025-24813)