[英]Create tar file in parent of working directory
I am trying to create a tar file but not place it in the current working directory but rather the parent of whatever the current working dir is.我正在尝试创建一个 tar 文件,但不是将它放在当前工作目录中,而是将它放在当前工作目录的父目录中。 I've tried the -C option but with no success.
我试过 -C 选项,但没有成功。
Did you try like this你试过这样吗
$ tar -cvf ../filename.tar ToBeArchivedFolder
Make sure you are using lower case 'c' in the command line options确保在命令行选项中使用小写“c”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.