[英]how to tar all files in a directory and move that tar to another directory
So I have 2 directors A and B. I want to tar all the files in A and have the .tar file be sent to directory B. How can i do this? 因此,我有2个导演A和B。我想压缩A中的所有文件,并将.tar文件发送到目录B。我该怎么做?
I have tried 我努力了
sudo tar -C /home/mine/A/ -cvf home/mine/B/test.tar
tar: Cowardly refusing to create an empty archive
tar -cvf /home/mine/B/test.tar /home/mine/A/
对我来说很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.