linux 下tar 的用法

1)tar -r 可以append file to tared_package.
tar -rf tared_package 添加文件
2)不打包目录用
ls -a --color=none | grep -v '^\.*$' | xargs tar -zcvf Workspace.tar.gz --exclude 目录名
3) 删除用 tar --delete -f tared_package 删除文件名
posted @ 2016-06-13 10:48  the_tops  阅读(319)  评论(0编辑  收藏  举报