In linux using TAR, why do you need C when Extracting, but you do not when compressing?
for example:
Compressing
tar -cvf $HOME/etc.backup.tar /tmp/data
There is no -C needed
Extracting
tar -xvf $HOME/etc.backup.tar -C /tmp/data/
Notice how you need the -C in between.
What is the logical process behind this? Also, why does the input location in the command line changes from right to left when compressing, meaning: tar -cvf $HOME/etc.backup.tar /tmp/data ........ the /tmp/data, the second location in the command line is the input and $HOME/etc.backup.tar , the first input is the output.... then when extracting it is vice versa?