AimerNeige revidoval tento gist 2 years ago. Přejít na revizi
Žádné změny
AimerNeige revidoval tento gist 2 years ago. Přejít na revizi
1 file changed, 9 insertions
extract_tar_gz.sh(vytvořil soubor)
| @@ -0,0 +1,9 @@ | |||
| 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 | |
Novější
Starší