Reputation: 107
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?
I have tried
sudo tar -C /home/mine/A/ -cvf home/mine/B/test.tar
tar: Cowardly refusing to create an empty archive
Upvotes: 0
Views: 6241
Reputation: 51917
tar -cvf /home/mine/B/test.tar /home/mine/A/
works fine for me.
Upvotes: 3