tar command
Hi, im sorry if this is a stupid question but Ive tried to google and read up on it but cant seem to figure it out. What is the difference between:
tar xvzf file.tar.gz dir/ and tar -xvzf file.tar.gz dir/ ?? |
kristhor,
Quote:
Code:
man tar |
In tar there is no difference between using the dash in front of the parameters or not using the dash. Other commands such as ps do have different behavior between using the dash and not using the dash.
The use of the dash or not using the dash is a legacy from BSD Bourne shell. It is a silly thing. |
thanx, I thought there was no difference, hence the problem finding something telling me otherwise. I just thought it was a little confusing seeing both versions used even in the same book :)
|
I believe that the original tar for unix systems required the -
Therefore it is probably there for backward compatibility |
An excerpt from the GNU tar manual:
Quote:
|
All times are GMT -5. The time now is 04:51 AM. |