“tar --directory” won't work [closed]?

The * wildcard is expanded by the shell before tar is invoked. Tar then changes directory (because you asked it to), but then can't find the files that were in the shell's current directory. Of course, changing directories in the shell means that you can't open the output file in the original current directory.So you have to redirect the output of tar outside of the subshell, like this: (cd $DIR; tar -vc *) > file.tar.

Thanks Neil, very helpful – PJx Nov 7 at 22:05.

You have to use a directory: tar -vcf files. Tar /path/to/directory If your files are in your folder, then use the . To reference the current folder: tar -vcf files.

Tar .

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions