torebanana.blogg.se

Tar.gz file extractor
Tar.gz file extractor






tar.gz file extractor

When extracting the files, you must provide the exact names, including the path, printed by -list( -t).Įxtracting one or more directories from an archive is equivalent to extracting archives: tar -xf dir1 dir2 To extract one or more specific files from a tar.gz archive, add a list of file names separated by spaces to extract after the file name: tar -xf file1 file2 To extract archives to a specific directory, use the -directory(-C) option:įor example, you may use the following command to extract the contents of a file to /home/linuxguidehq/ files: tar -xf -C /home/linuxguidehq/files Extract a specific file from a tar.gz archive The contents of the archive are extracted into the current working directory by default. It -v makes tar more visible and prints the names of the extracted files in the terminal. To extract (unzip) a tar.gz file, simply right-click on the file and select “Extract.” To extract the tar.gz files, Windows users will need to use the 7zip utility. If you’re a desktop user and don’t want to use the command line, you can use your File Manager.

tar.gz file extractor tar.gz file extractor

The same command can be used to extract compressed tar files that use different algorithms, such as.tar.bz2. Tar will detect the type of compression and extract the file automatically. To extract a tar.gz file, use the –extract( -x) and specify the file name after the (f) option: tar -xf Most Linux and macOS distributions come with the tar command pre-installed by default. To extract a tar.gz file, use the tar -xffollowed by the file name. The tar.gz file is a Gzip compressed tar file. Extract a specific file from a tar.gz archive.








Tar.gz file extractor