![]() To use the popular gzip compression format, simply use the -z or -gzip option. For example, a file that has been compressed using gzip will have the extension. Luckily there are quite a few compression programs that you can use. example example.tar Create a gzip tar Archiveīy default, tar will not compress the archive. You should get an output similar to the one below. You can check if the archive file exists by using the ls command. ![]() Files are extracted to the current working directory unless specified. You can turn the output off by simply removing the -v or -verbose option. The output from the above examples should look similar to ours below. tar -create -verbose -file=example.tar example/ tar -cvf example.tar example/Īlternatively, the command will look similar to our example below if you use the longer way of writing options such as -create, -verbose, and -file=. The command should look something like below. If you use the shorthand way of writing options, we will use the -c, -v, and -f options. However, we will need to use a few different options to do this correctly. The most straightforward use of the command is creating an uncompressed tarball. tar -xvf example.tar example/ Create an Uncompressed tar Archive You can now extract our tar file and start running through some of the examples in this tutorial. You can create a similar setup or download our example files using the wget command. To prepare for this guide, we created an example folder filled with a range of different files and a subdirectory. Luckily, it is an easy tool to use and will not take very long to understand fully.ġ. The tar command is incredibly useful for archiving and extracting tar archives.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |