xz

Utilizing multi core for tar+gzip/bzip compression/decompression

廉价感情. 提交于 2019-11-26 23:45:34
问题 I normally compress using tar zcvf and decompress using tar zxvf (using gzip due to habit). I've recently gotten a quad core CPU with hyperthreading, so I have 8 logical cores, and I notice that many of the cores are unused during compression/decompression. Is there any way I can utilize the unused cores to make it faster? 回答1: You can use pigz instead of gzip, which does gzip compression on multiple cores. Instead of using the -z option, you would pipe it through pigz: tar cf - paths-to

压缩&解压缩

ε祈祈猫儿з 提交于 2019-11-26 17:13:10
1、zip,unzip zip 压缩文件名.zip 要被压缩文件的名字 zip -m test1.zip test2.txt 把test2添加到test1.zip zip -d test1.zip test2.txt 把test2从test1.zip中删除 zip test1.zip *.txt -x test10.txt 除test10以外,将所有.txt文件压缩 zip -r /dir 递归压缩 unzip test1.txt unzip test1.zip -d /压缩目录 unzip -v test1.zip 不解压,查看压缩内容 2、gzip、gunzip gzip 被压缩的文件名,压缩后,源文件不保留 gzip -c test.txt > test.txt.gz 压缩,保留源文件 gzip -r 目录 压缩了目录下的所有内容 gunzip test.txt.gz gunzip -c test.zip.gz > /root/test.txt 解压缩到特定目录,并且保留源文件 不解压查看 [root@localhost test1]#zcat test5.txt.gz [root@locaIhost test1]#zless test5.txt.gz 3、bzip2、bunzip2 bzip2 被压缩的文件名,压缩后,源文件不保留 bzip2 -c test.txt >

gcc编译

北慕城南 提交于 2019-11-26 13:55:22
centos上面的gcc是4.x的,因为我们使用了c++17,所以想升级成最新的gcc 1. 下载源码 https://gcc.gnu.org/index.html 2. 下载下来是.tar.xz,因为xz的格式比较小 3. 解压 xz -d gcc.tar.xztar zvf gcc.tar 来源: https://www.cnblogs.com/studywithallofyou/p/11322965.html

Archlinux安装Teamviewer13

有些话、适合烂在心里 提交于 2019-11-26 02:23:59
Archlinux安装Teamviewer13 1.直接到www.teamviewer.com 下载tar包 下载的文件是teamviewer_amd64.tar.xz 解压xz文件: $xz -d teamviewer_amd64.tar.xz 解压出来teamviewer_amd64.tar 解压tar文件: $tar xvf teamviewer_amd64.tar 2.检查依赖 $cd teamviewer $./tv_setup checklibs 3.安装依赖包 $sudo pacman -S qt5-base qt5-webkit qt5-x11extras qt5-quickcontrols 其中qt5-quickcontrols包在检查依赖时没要求装,但不装这个包,TV的窗口死活不显示出来。 4.运行 $./teamviewer 没啥好说的,直接运行就出来了,软件倒可以不安装,就是依赖有点隐蔽,呵呵 来源: 51CTO 作者: jxnewdate 链接: https://blog.51cto.com/jxnewdate/2094926