[英]how to tar all files in a directory and move that tar to another directory
因此,我有2個導演A和B。我想壓縮A中的所有文件,並將.tar文件發送到目錄B。我該怎么做?
我努力了
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.