tar 两个技巧
###################################################################
#去除某个目录 使用--exclude dir ,且exclude dir 必须位于打包目录之前,不能写到后面
tar cvf t.tar --exclude ./myshell/tmp ./myshell
###################################################################
###################################################################
#去除某个目录 使用--exclude dir ,且exclude dir 必须位于打包目录之前,不能写到后面
tar cvf t.tar --exclude ./myshell/tmp ./myshell
###################################################################
#解压到某个特定目录 -C 参数
tar cvf t.tar -C /mypath
有了这两个小技巧,处理某些问题不用频繁的mv了,省时省力。