When I use the -p option in tar (preserve permissions), do I need to use the option during both the creation AND extraction of the archive, or just ONE of them?
I'm unable to find a definitive answer to this question, and "man tar" doesn't make it clear either.
So, I wonder if you could tell me please, which of the following needs the "p":
$ tar cpf archive.tar source-files # Create an archive.
$ tar xpf archive.tar # Extract the archive.
I'm interested to know if only one of the commands requires the "p", rather than just use a blanket solution of using "p" in both.