I know there are a lot of questions that seems identical, but I haven't found so far my answer.
So let's figure I'm in the current working directory : /test/ I would like to add to an archive 'test.tar.gz' which will be in /test/archive/ all the files that are contained in /test/files/ and then delete this directory files/
I tried :
tar -cz -C archive -f "test.tar.gz" -C files ./* && rm -rf files
But no success.
Any thoughts ?
Thanks ! Nico