Winrar linux command11/25/2023 After the filename, all other parameters are the files or directories to add to the archive. ’v’ displays the files added to the tarball and ’c’ option tells tar to create an archive, Decompress a compressed tar archive in gzip tar -xvfz Decompress a compressed tar archive in gzip tar -cvfz dir1 Decompress a compressed tar archive in bzip2 tar -xvfj 2 Create a tarball compressed into bzip2 tar -cvfj 2 dir1 Extract a tarball into / tmp : tar -xvf archive.tar -C /tmp Extract a tarball : tar -xvf archive.tar Show contents of an archive: tar -tf archive.tar Create an archive containing ‘file1′, ‘file2′ and ‘dir1: tar -cvf archive.tar file1 file2 dir1 Create a uncompressed tarball : tar -cvf archive.tar file1 You can use tar to create file archives, to extract files from previously created archives, store additional files, or update or list files which were already stored. GNU tar is an archiver that creates and handles file archives in various formats using the ‘tar’ command ,it was originally used as a backup tool to write data to magnetic tape drives. ![]() ![]() Today in this part will show you the main commands to compress/decompress files using rar, bzip, tarball(tar) and gunzip. This is a series of lessons of “Basic Commands “ that focuses on command-line usage, in this serie you will learn the tools and tricks of the command line, which are in many cases faster, more powerfull, and more flexible than GUIprogram.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |