Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Unzip particular file from an zip file

$
0
0
Sometimes we would know the archive file present in zip folder and would like to unzip only that particular file.  The ‘-j’ option help us to achieve the same.
Lets say “myarchive.zip” is the zip folder and 
“file.txt” is the filename would like to extract.
File.txt relative path inside the folder is "in/archive/file.txt"

Below command will extract file.txt to "/path/to/unzip/to"

unzip -j "myarchive.zip""in/archive/file.txt" -d "/path/to/unzip/to"

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>