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:显示版本信息;

最新文章

  1. SQL Server里因丢失索引造成的死锁
  2. 神逸之作:国产快速启动软件神品ALTRun
  3. POJ 1681 Painter&#39;s Problem (高斯消元 枚举自由变元求最小的步数)
  4. kibana 访问IP分布图
  5. CentOS 网络设置修改
  6. 201521123056 《Java程序设计》第6周学习总结
  7. bash中声明变量方法
  8. C语言的第一次作业总结
  9. 【.net】未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序解决办法
  10. Set集合特点
  11. mysql安装绑定my.ini
  12. 团队作业第五周(HCL盐酸队)
  13. 基于802.11Fuzz技术的研究
  14. mysql数据具体操作
  15. python之type
  16. compose配置文件参数详解
  17. linux ubuntu R 无法安装rggobi包的原因及解决方案
  18. Maven进行Mahout编程,使其兼容Hadoop2.2.0环境运行 (转)
  19. WCF返回null超时
  20. CloudFlare Support - Error 522: Connection timed out 错误522:连接超时

热门文章

  1. Java多线程ThreadLocal介绍
  2. HDU 1069 Monkey and Banana (动态规划、上升子序列最大和)
  3. springMvc中获取通过注解获取properties配置文件(转)
  4. Java基础(四)
  5. ubuntu 安装 Gurobi 的tips
  6. python,pycharm环境安装
  7. transform(转https://blog.csdn.net/qq_24189933/article/details/79293870)
  8. 04、DAT图像文件
  9. RabbitMQ入门教程(五):扇形交换机发布/订阅(Publish/Subscribe)
  10. CentOS 7 安装MongoDB 4.0