shellmavenextracttar

Extracting .tar file isn't working


Thanks ahead of time for all your help guys! As a beginner user I really appreciate the help!


My Machine/OS: Mac OSX 10.5.8, 32-bit


What I'm trying to do: Extract and install Apache Maven, from the website.


What I've done: Downloaded the binary .tar.gz file from the website, and using the shell, moved the downloaded file to the appropariate directory, and extracted the .tar out of the .tar.gz by using gunzip -v filename.tar.gz, resulting a .tar file. Now I'm trying to extract the .tar file using tar -xv filename.tar.


My Problem The extraction doesn't seem to be working! After I've typed the tar -xv filename.tar command and hit enter, the shell isn't returning any output, and doesn't seem to complete the extraction. It stays indefinitely with the empty line returned after hitting enter.


My Attempts Examining the directory from another Shell window, both while tar is running and after quitting the shell while the process is running, doesn't show any changes in the files contained; i.e. the only file/directory present is the original .tar.gz file. I've also tried deleting the file along with the directory containing it, re-creating the directory, re-copying the file into the directory, and then re-trying the tar -xv filename.tar command. The result is the same


Thank you so much everyone!


Solution

  • try the following command:

    tar -xzvf filename.tar.gz