红联Linux门户
Linux帮助

tar command in Linux

发布时间:2008-03-28 16:45:28来源:红联作者:MPiops
tar -czvf super.tar.gz ./super/ ./mono/

add all files under subdir 'super' and 'mono' into the compressed file 'super.tar.gz'.

tar -xzvf super.tar.gz ./temp/

extract all files from 'super.tar.gz' to subdir 'temp'.

tar -z --list --file=super.tar.gz

list all the contents of file 'super.tar.gz'. Because the file is packed by tar first, then compressed by gzip, so if you want to see the contents of .gz file, you much add the filter parameter '-z'.
文章评论

共有 0 条评论