2023年8月3日发(作者:)

linux压缩命令命令例如:zip -r mysql 该句命令的含义是:将mysql⽂件夹压缩成 -r abc 这句命令的意思是将⽂件夹abc和⽂件压缩成⼀个压缩包命令与zip命令相反,这是解压命令,⽤起来很简单。 如:unzip 在当前⽬录下直接解压。

[root@localhost test]# mysql[root@localhost test]# zip mysql adding: mysql/ (stored 0%)[root@localhost test]# mysql [root@localhost test]# rm -rf mysql[root@localhost test]# [root@localhost test]# unzip

Archive: creating: mysql/[root@localhost test]# mysql [root@localhost test]#

  [root@localhost test]# mysql [root@localhost test]# rm -rf

[root@localhost test]# mysql[root@localhost test]# zip -r mysql/ zip warning: missing end signature--probably not a zip file (did you zip warning: remember to use binary mode when you transferred it?) zip warning: (if you are trying to read a damaged archive try -F)zip error: Zip file structure invalid ()[root@localhost test]# zip -r mysql/ adding: (stored 0%) adding: mysql/ (stored 0%)[root@localhost test]# mysql [root@localhost test]# rm -rf mysql/[root@localhost test]# [root@localhost test]# unzip

Archive: extracting:

creating: mysql/[root@localhost test]# mysql [root@localhost test]#

  

2023年8月3日发(作者:)

linux压缩命令命令例如:zip -r mysql 该句命令的含义是:将mysql⽂件夹压缩成 -r abc 这句命令的意思是将⽂件夹abc和⽂件压缩成⼀个压缩包命令与zip命令相反,这是解压命令,⽤起来很简单。 如:unzip 在当前⽬录下直接解压。

[root@localhost test]# mysql[root@localhost test]# zip mysql adding: mysql/ (stored 0%)[root@localhost test]# mysql [root@localhost test]# rm -rf mysql[root@localhost test]# [root@localhost test]# unzip

Archive: creating: mysql/[root@localhost test]# mysql [root@localhost test]#

  [root@localhost test]# mysql [root@localhost test]# rm -rf

[root@localhost test]# mysql[root@localhost test]# zip -r mysql/ zip warning: missing end signature--probably not a zip file (did you zip warning: remember to use binary mode when you transferred it?) zip warning: (if you are trying to read a damaged archive try -F)zip error: Zip file structure invalid ()[root@localhost test]# zip -r mysql/ adding: (stored 0%) adding: mysql/ (stored 0%)[root@localhost test]# mysql [root@localhost test]# rm -rf mysql/[root@localhost test]# [root@localhost test]# unzip

Archive: extracting:

creating: mysql/[root@localhost test]# mysql [root@localhost test]#