# gzip tmp1.txt tmp2.txt tmp3.txt
# ls *.gz
tmp1.txt.gz tmp2.txt.gz tmp3.txt.gz
# gunzip tmp1.txt.gz
# gzip -l temp.tar.gz
compressed uncompressed ratio uncompressed_name
262 20480 98.9% temp.tar
# cat down.sh |gzip -c > down.sh.gz
# tar -czvvf my.tar.gz [Some Files]
# tar -cavvf my.tar.gz [Some Files]
#!/bin/bash
FILE_LIST="file1 file2 file3 file4 file5"
for f in $FILE_LIST;
do
tar -rvf my.tar $f
done
gzip my.tar
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |