How do I unzip a tar gz archive to a specific destination?
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3 Looping
--
Chapters
00:00 Question
00:34 Accepted answer (Score 231)
00:51 Thank you
--
Full question
https://superuser.com/questions/348205/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #tar #gzip
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3 Looping
--
Chapters
00:00 Question
00:34 Accepted answer (Score 231)
00:51 Thank you
--
Full question
https://superuser.com/questions/348205/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #tar #gzip
#avk47
ACCEPTED ANSWER
Score 235
You have two choices:
cd /root/Desktop/folder
tar xf /root/Documents/file.tar.gz
or
tar xf file.tar.gz -C /root/Desktop/folder