![]() The Dolphin file manager offers a feature to autodetect whether the files extracted from an archive are contained in a directory or if a new directory needs to be created for them. ![]() In a GUI, right-click the archive you want to extract and select "Extract." If you've received a tarball from a friend or a software project, you can extract it in either your GUI desktop or in a shell. $ tar -create -gzip -file myfilesĬommon extensions are tar.gz and. For compression, you can have tar call Gzip or bzip: $ tar -create -bzip2 -file 2 myfiles Compressing archivesĬreating a tar archive does not compress your files, it just makes them easier to move around as one blob. Tarbombs are useful for patches and software installers it's just a matter of knowing when to use them and when to avoid them. These kinds of archives are sometimes called a tarbomb, although not always with a negative connotation. You don't have to put files into a directory before archiving them, but it's considered poor etiquette not to, because nobody wants 50 files scattered out onto their desktop when they unarchive a directory. The tar utility is unique among commands, because it doesn't require dashes in front of its short options, allowing power users to abbreviate complex commands like this: $ tar cvf archive.tar myfiles To gather a group of files into one archive, place your files in a directory and then invoke tar, providing a name for the archive that you want to create and the directory you want to archive: $ tar -create -verbose -file archive.tar myfiles In a shell, it's basically the same process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |