Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 25235  / 2 Years ago, mon, november 29, 2021, 8:15:02

I am not able to uncompress a file with .tar.gz extension



Did
sudo tar -xvzf ~/Downloads/file.tar.gz /opt/ but no success.
it says:



tar: /opt: Not found in archive
tar: Exiting with failure status due to previous errors

More From » tar

 Answers
5

You can specify in which directory you want the files extracted using the -C option. Change your command to:



sudo tar -xvzf ~/Downloads/file.tar.gz -C /opt/

[#36584] Wednesday, December 1, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olfdit

Total Points: 118
Total Questions: 98
Total Answers: 97

Location: Honduras
Member since Fri, Nov 25, 2022
1 Year ago
;