Linux 环境下 gzip 的加解密命令
2024-10-02 20:33:48
1、加密
[root@127-0-0-1 nginx]# gzip -v access.log-20190328
access.log-20190328: 95.8% -- replaced with access.log-20190328.gz
[root@127-0-0-1 nginx]#
replaced with :被替代
2、解压
方法一:
[root@127-0-0-1 nginx]# gzip -dv /var/log/nginx/access.log-20190328.gz
access.log-20190328.gz: 95.8% -- replaced with access.log-20190328
[root@127-0-0-1 nginx]#
方法二:
[root@127-0-0-1 nginx]# gunzip -v access.log-20190328.gz
access.log-20190328.gz: 95.8% -- replaced with access.log-20190328
[root@127-0-0-1 nginx]#
3、版本
[root@127-0-0-1 nginx]# gzip -V
gzip 1.5
Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law. Written by Jean-loup Gailly.
[root@127-0-0-1 nginx]#
4、总结
-v:显示指令执行过程;
-d:解开压缩文件;
-V:显示版本信息;
最新文章
- SQL Server里因丢失索引造成的死锁
- 神逸之作:国产快速启动软件神品ALTRun
- POJ 1681	Painter&#39;s Problem (高斯消元 枚举自由变元求最小的步数)
- kibana 访问IP分布图
- CentOS 网络设置修改
- 201521123056 《Java程序设计》第6周学习总结
- bash中声明变量方法
- C语言的第一次作业总结
- 【.net】未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序解决办法
- Set集合特点
- mysql安装绑定my.ini
- 团队作业第五周(HCL盐酸队)
- 基于802.11Fuzz技术的研究
- mysql数据具体操作
- python之type
- compose配置文件参数详解
- linux ubuntu R 无法安装rggobi包的原因及解决方案
- Maven进行Mahout编程,使其兼容Hadoop2.2.0环境运行 (转)
- WCF返回null超时
- CloudFlare Support - Error 522: Connection timed out 错误522:连接超时
热门文章
- Java多线程ThreadLocal介绍
- HDU 1069 Monkey and Banana (动态规划、上升子序列最大和)
- springMvc中获取通过注解获取properties配置文件(转)
- Java基础(四)
- ubuntu 安装 Gurobi 的tips
- python,pycharm环境安装
- transform(转https://blog.csdn.net/qq_24189933/article/details/79293870)
- 04、DAT图像文件
- RabbitMQ入门教程(五):扇形交换机发布/订阅(Publish/Subscribe)
- CentOS 7 安装MongoDB 4.0