This is because we used the j option for highly compressed tar files. Now, lets check the sizes of each compressed file: 62M wordpress.tarĪs you can see, the 2 has the smallest size. This will create a tar.bz2 archive file with highly compressed files in it. To create a tar.bz2 archive file, execute the following command: tar cvfj 2 wordpress/ This will make a new file, defined with the c option, and the file name type specified with the f option. To create an archive file, execute the following command: tar -cf wordpress.tar wordpress/ This will create gzip compressed file specified with the z option and the v option to show the progress while the file is being zipped. To create a tar.gz archive file, execute the following command: tar -cvzf wordpress/ The tar command have the following syntax: tar 2. Once the system is updated, we are ready to show you the tar commands in Linux with examples. If you have a fresh installation of Ubuntu 22.04, it is recommended to update the system packages to the latest versions available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |