在linux下如何查看某个文件夹下各个文件所占内存的大小:
1.先cd到要查看的的目录下
2.du -hl
即可以查看该目录下所有文件夹所占空间的大小
linux中文件压缩解压:
https://www.cnblogs.com/angelye/p/8193498.html
gzip tools.txt 压缩【tools.txt】文件
zcat tools.txt.gz 查看压缩文件【tools.txt.gz】内容
gunzip tools.txt.gz 解压文件【tools.txt.gz】
cat tools.txt 查看文件【tools.txt】内容
tar -zcvf txt.tar *.txt 把所有*.txt文件打包压缩名为【txt.tar】的文件
tar -xvf txt.tar 解压文件