11/28/2023 0 Comments Ubuntu tar compress folder![]() ![]() Go one level outside your folder and try: sudo tar -cvjSf 2 folder. 8.1.1 Creating and Reading Compressed Archives Sound information on using the auto-compress options with tar as well as the possibilities for accomplishing the same goal with a more manual and flexible option. You are not indicating what to include in the archive. tar -I pbzip2 -cf 2 pathstoarchive tar -use-compress-programpigz -cf pathstoarchive Archiver must accept -d.Many modern Unix systems, such as Linux, use GNU tar. Recognised suffixes (and their attendant compressing applications) are: Learn how to quickly compress an entire directory into a single tar file with the command line. Use archive suffix to determine the compression program. To install, just press Ctrl+Alt+T on your keyboard to open Terminal. Usually,files that have been compressed by bzip2 will have a. Therefore, a bzip2 file can be 10-20 smaller than a gzip version of the same file. You need the archive name immediately after the -f option, the correct sequence being: tar -c įor a more flexible command line (particularly if you wanted to use other compression utilities apart from gzip with tar) you could omit the -z option and use -a or -auto-compress option to allow tar to automatically decide which compressor to use based on the archive suffix: -a, -auto-compress The bzip2 utility is capable of greater compression ratios than gzip. The usual file extension for a compressed tar archive is. Arguments supply the names of the files to be archived.ĭirectories are archived recursively, unless the -no-recursion option isĪlthough this can be turned off by using the -no-recursion option. In Terminal, you can use the GNU tar command to compress and uncompress files and folders. Recursion is the default, from the tar man pages: -c, -createĬreate a new archive. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |