Saturday, 26 November 2011

tar -cf

tar -cf

I'M working through a Linux book and it's showing how to use tar, the book uses CentOS. I was told to use the command:

Code:

tar -cf demofile.tar file1.txt file2.txt file3.txt
the book also stated that this would create the archive demofile.tar including the file file1.txt, file2.txt, and file3.txt

After typing this in this is what I got:

[root@localhost demo]# tar -cf demofile.tar file1.txt file2.txt file3.txt
tar: file1.txt: Cannot stat: No such file or directory
tar: file2.txt: Cannot stat: No such file or directory
tar: file3.txt: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors


Thanks for any and all replies.

No comments:

Post a Comment