*Z, *.tar, *.tar.gz, *.zip, *.tgz: 经过打包的压缩文件。这是因为压缩软件分别为 gunzip, tar 等等的,由于不同的压缩软件,而取其相关的扩展名; *.html, *.php:网页相关文件,分别代表 HTML 语法与 PHP 语法的网页文件啰! .html 的文件可使用网页浏览器来直接打开,至于 .php 的文件, 则可以通过 ...
you can detach a process from the shell and put it in the “background” with the ampersand (&); this gives you the prompt back. For example, if you have a large file that you need to decompress with gunzip (you’ll see this ...
与 gzip 相对的解压程序是 gunzip。tar 中使用 -z 这个参数来调用gzip。下面来举例说明一下: tar -czfall.tar.gz*.jpg 这条命令是将所有 .jpg 的文件打成一个 tar 包,并且将其用 gzip 压缩,生成一个 gzip 压缩过的包,包名为 all.tar.gz。 tar -xzfall.tar.gz 这条命令是将上面产生的包解开。 2)...
you can detach a process from the shell and put it in the “background” with the ampersand (&); this gives you the prompt back. For example, if you have a large file that you need to decompress with gunzip (you’ll see this ...
netstat或ss:查看网络连接状态和监听端口(较新系统中推荐使用 ss)。 6、压缩与解压: tar:打包和解包文件,常见的格式有.tar.gz、.tar.bz2等,如tar -czvf archive.tar.gz directory打包目录为gzipped tarball。 gzip、bzip2、xz:压缩单个文件。 unzip、gunzip、bunzip2:解压缩相应格式的文件。登录...
– 压缩目录:`zip -r archive.zip directory` 这个命令将会把 `directory` 目录下的文件和子目录压缩为 `archive.zip` 压缩文件。 – 解压缩压缩文件:`unzip archive.zip` 这个命令将会解压缩名为 `archive.zip` 的压缩文件。 3. `gzip` 和 `gunzip` 命令:`gzip` 命令用于压缩文件,`gunzip` 命令用于解压...
zip -r filename.zip directoryname “` 2. 解压缩文件和目录 (1)gunzip命令:gunzip命令用于解压缩以.gz为扩展名的文件。 示例: “` gunzip filename.gz “` (2)bunzip2命令:bunzip2命令用于解压缩以.bz2为扩展名的文件。 示例: “` bunzip2 filename.bz2 ...
--atime-preserve[=METHOD] preserve access times on dumped files, either by restoring the times after reading (METHOD='replace'; default) or by not setting the times in the first place (METHOD='system') --delay-directory-restore delay setting modification times and ...
# Include all files in /etc/dnsmasq.d except RPM backup files conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig gzip: c.gz: No such file or directory 3、指定压缩目录 [root@mxk-01 mxk]# ls 1.txt [root@mxk-01 mxk]# gzip -c 1.txt > /tmp/mxk/2.txt.gz (-c为指定压缩文件目...
zip、unzip、gzip、gunzip、bzip2、bunzip2、xz、unxz、zcat、tar zip/unzip: [root@cacti tmp]# ls -l total 3096 -rw--- 1 root root 3167456 Apr 7 11:30 messages //常规压缩,不删除原文件 [root@cacti tmp]# zip messages.zip messages adding:...