![]() ![]() Likewise, archives are used for software application packaging.Īrchive files are typically used for a transfer (locally or over the internet) or make a backup copy of a collection of files and directories which allow you to work with only one file (if compressed, it has a lower size than the sum of all files within it) instead of many. This single file can be easily compressed for ease of transfer while the files in the archive retain the structure and permissions of the original files. This tutorial shows how to use tar to create an archive, list the contents of an archive, and extract the files from an archive.Īrchives made with tar are normally called “tar files,” “tar archives,” or-since all the archived files are rolled into one-“tarballs.” We can use the tar tool to create, list, and extract files from archives. ![]() Two common options used with all three of these operations are ‘-f’ and ‘-v’: to specify the name of the archive file, use ‘-f’ followed by the file name use the ‘-v’ (“verbose”) option to have tar output the names of files as they are processed. While the ‘-v’ option is not necessary, it lets you observe the progress of your tar operation.įor the remainder of this tutorial, we cover 3 topics: 1- Create an archive file, 2- List contents of an archive file, and 3- Extract contents from an archive file. We conclude this tutorial by surveying 6 practical questions related to archive file management. ![]() What you take away from this tutorial is essential for performing tasks related to cybersecurity and cloud technology. To create an archive with tar, use the ‘-c’ (“create”) option, and specify the name of the archive file to create with the ‘-f’ option. It’s common practice to use a name with a ‘.tar’ extension, such as ‘my-backup.tar’. Note that unless specifically mentioned otherwise, all commands and command parameters used in the remainder of this article are used in lowercase.
0 Comments
Leave a Reply. |