Linux常见压缩文件扩展名如下:
.zip,.gz,.bz2,.xz,.tar.gz,.tar.bz2,.tar.xz
压缩文件解压后可能与源文件大小不一致。
gzip压缩工具
命令格式: gzip 文件名
不能压缩目录
[root@centos01 d6][root@centos01 d6] 压缩1.txt[root@centos01 d6] ls -lh 1.txt.gz-rw-r--r--. 1 root root 358K Sep 30 07:38 1.txt.gz[root@centos01 d6] 解压缩1.txt.gz[root@centos01 d6] gunzip 1.txt.gzls1.txt[root@centos01 d6] 默认压缩级别6,后缀是gz的文件怎么打开手机,范围1-9 [root@centos01 d6] zcat 1.txt.gz | head -n 5This is an example configuration file for the LVM2 system. /etc/lvm/lvm.conf file. gzip -c 1.txt > 1.txt.gzls1.txt 1.txt.gz[root@centos01 d6] 不删除压缩文件,解压为指定文件[root@centos01 d6]# ls1.cp.txt 1.txt 1.txt.gz
bzip2压缩工具
gz文件是一种压缩文件。以·tar.gz为扩展名的是一种压缩文件,在Linux和OSX下常见,Linux和OSX都可以直接解压使用这种压缩文件。在Windows下的常用的压缩软件WinRAR也可以打开gz文件,相当于常见的RAR和ZIP格式。
安装工具: yum install -y bzip2
命令格式: bzip2 文件名
sql.gz文件怎么打开方法:打开Navicat for MySQL,右击打开连接。右击新建数据库,在新建窗口命名新建数据库,点击确定即可。打开新建数据库,或者双击打开即可。右击数据库,在选项卡找到运行SQL文件,运行SQL文件。
不支持压缩目录
[root@centos01 d6] 压缩1.txt[root@centos01 d6] bzip2 -d 1.txt.bz2ls1.cp.txt 1.txt 1.txt.gz[root@centos01 d6] bunzip2 1.txt.bz2bzip2 -c 1.txt > 1.tmp.bz2ls1.cp.txt 1.tmp.bz2 1.txt 1.txt.gz[root@centos01 d6] 压缩时不删除文件,并输出到指定文件[root@centos01 d6] bzip2 -9 1.cp.txtls1.cp2.txt 1.cp.txt.bz2 1.tmp.bz2 1.txt 1.txt.gz[root@centos01 d6] bz2压缩文件查看 It contains the default settings that would be used if there was no this file are combined with built-in values and command line options to
详细显示例1中每个压缩的文件的信息,并不解压。gzip usr.tar 压缩 tar 备份文件 usr.tar,此时压缩文件的扩展名为.tar.gz。gzip文件怎么打开?1.winrar!双击文件,选择从默认安装程序里打开,在里面浏览到winrar的程序后选。
xz压缩工具
命令格式: xz 2.txt
使用基本和gzip、bzip2一样
1,tar.gz文件到手机任何一个目录,安装工具打开。2,点击tar.gz所在手机目录,找到tar.gz按住它。3,选解压到当前文件夹,你即可把tar.gz文件解压出来。4,对于源文件,则选择他啊,点击删除,点击是,把它删除了。