What is the difference between:
tar xvzf file.tar.gz dir/ and tar -xvzf file.tar.gz dir/
I am not an expert by any means, but as far as I know you have to use the " - ". That tells tar to use those options. In a console window type
this will show you all the options and you will see all of them use the " - " . I hope that helps.