extract_tar_gz.sh
· 417 B · Bash
原始文件
# extract specific file(s) from tar.gz
tar -zxvf <tar filename> <file you want to extract>
# -x: instructs tar to extract files.
# -f: specifies filename / tarball name.
# -v: Verbose (show progress while extracting files).
# -z: filter archive through gzip, use to decompress .gz files.
# -t: List the contents of an archive
# https://unix.stackexchange.com/questions/61461/how-to-extract-specific-files-from-tar-gz
1 | # extract specific file(s) from tar.gz |
2 | tar -zxvf <tar filename> <file you want to extract> |
3 | |
4 | # -x: instructs tar to extract files. |
5 | # -f: specifies filename / tarball name. |
6 | # -v: Verbose (show progress while extracting files). |
7 | # -z: filter archive through gzip, use to decompress .gz files. |
8 | # -t: List the contents of an archive |
9 | # https://unix.stackexchange.com/questions/61461/how-to-extract-specific-files-from-tar-gz |