Quote:
Originally posted by n175uj
Because I am very unaware to the file structure I am confused to were tar extracts the files.
tar zxvf foo.1.2.3-4.tar.gz
This explination shows that after the tar is executed to go to foo. Is the directory the foo part of the file name ?
Since my tar file name is mgadriver-4.1.tar.gz would the mgadriver be the directory created ?
|
The directory created and archive name are not directly related. Just everyone does compresses directory with the files instead of the files alone (it's good, because you get a directory when unpacking instead of a bunch o files).
Tar.gz format is very similar to .zip. You can compress a directory in a zip file, right? That's exactly the same.
The directory name in the archive is usually something like (examples from your file) 'mgadriver' or 'mgadriver-4.1'. It's up to the person creating it. 'mgadriver' form is more common.
When you unpack the file, you can run 'ls' command to see a list of files (and directories). You will have the name of your new directory among other ones.