The files will be extracted in the current folder (most of the times in a folder with the name 'file-1.0').In x mode, changes directoriy after opening the archive but before extracting entries from the archive. In c and r mode, this changes the directory before adding the following files. (what is next after the f is the archive file) v = verbose (optional) the files with relative locations will be displayed.x = eXtract, this indicated an extraction c = create to create ).tar xf file.tar - to uncompressed tar file (.tar) tar xC /var/tmp -f file.tar - to uncompress tar file (.tar) to another directory tar.gz) tar xjf 2 - to uncompress a bzip2 tar file (.tbz or. Tar xzf - to uncompress a gzip tar file (.tgz or. The program, tar, will uncompress both types and extract the files from archive. Generally that are compressed using gzip or bzip2. Within the Info interface, press ? (the question mark) for a list of commands.Tar file can come compressed or uncompressed. You can access this documentation by entering: info tar GNU tar comes with additional documentation, including a tutorial, accessible through the GNU Info interface. For details, consult the tar manual page on the command line, enter: man tar The tar command has many options available. For example, some versions of tar (not GNU tar) require that the -f option be immediately followed by a space and the name of the tar archive file. When using the tar command, the order of the options sometimes matters. To extract the contents of a tar archive file compressed with compress (for example, my_), use the following command: uncompress -c my_ | tar -xvf - Additional information If you are not using GNU tar and need to extract the contents of a tar archive file compressed with gzip (for example, my_), use the following command: gunzip -c my_ | tar -xvf. To extract the contents of a tar archive file compressed with gzip (for example, my_), use the following command: tar -xvzf my_ To extract the contents of a tar archive file created by tar (for example, my_files.tar), use the following command: tar -xvf my_files.tar If gzip isn't available on your system, you can use the compress utility to create a compressed archive (for example, my_) for example (replace file1 and file2 with the names of the files you want to combine): tar -cvf - file1 file2 | compress > my_ Extract the contents of an archive file Windows users will need a tool named 7zip to extract tar.bz2 files. If your system does not use GNU tar, but nonetheless has gzip, you can create a compressed tar archive file (for example my_ with the following command (replace file1 and file2 with the names of the files you want to combine): tar -cvf - file1 file2 | gzip > my_ To extract (unzip) a tar.bz2 file simply right-click the file you want to extract and select Extract. tar.gz are equivalent both signify a tar archive file compressed with gzip. In the above examples, the -z option tells tar to use gzip to compress the archive as it is created.To use tar and gzip to combine all the files in a directory into a compressed archive file (for example, my_), use the following command (replace /path/to/my/directory with the absolute path to the directory containing the files you want to combine):.To use tar and gzip to combine multiple files into a compressed archive file (for example, my_), use the following command (replace file1 and file2 with the names of the files you want to combine):.If your system uses GNU tar, you can use tar in conjunction with the gzip file compression utility to combine multiple files into a compressed archive file. ![]() Many Linux distributions use GNU tar, a version of tar produced by the Free Software Foundation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |