
#Untar xz file linux archive#
For example the above command will extract “fileA” “fileB” from the archive files. tar.tbz file in Linux : This command will extract or untar multiple files from the tar, tar.gz and tar.bz2 archive file. $ tar xvfj file.tar -C path of file in directoryħ. Untar single tar file or specified directory in Linux : This command will Untar a file in current directory or in a specified directory using -C option. rwxrwxrwx root/root 94 02:47 example.cppĦ. Both compress and decompress takes more time then gzip. Creating compressed tar archive file in Linux using option -j : This command compresses and creates archive file less than the size of the gzip.

Extracting a gzip tar Archive *.tar.gz using option -xvzf : This command extracts files from tar archived files. gzip compression on the tar Archive, using option -z : This command creates a tar file called which is the Archive of. Extracting files from Archive using option -xvf : This command extracts files from Archives. Creating an uncompressed tar Archive using option -cvf : This command creates a tar file called file.tar which is the Archive of all. Archive files are used to collect multiple data files together into a single file for easier portability and storage, or simply to compress files to use less storage space.ġ.


