How to write a 'tar' command
You're viewing a single thread.
Don't you have to specify the compression algorithm when extracting? I always use tar -xzf for gzip files and if I remove -z it just fails.
tar -xzf
I've been using only xf for a long time now. Don't remember ever getting an error from it in the last years. Maybe tar can now check the magic number or something to figure out what the format is?
xf