![]() ![]() To compress them, we'll use tar like this: tar -czvf logs_ * We have a list of the following files which we'll compress with tar. We use this flag when files need to be extracted from an archive. Providing the -v flag shows details of the files compressed.Īrchive file names are mapped using the -f flag. When we specify this flag, it means that archive will be created using gzip compression. We use this flag whenever we need to create a new archive. ![]() ![]() The tar command uses the following flags to customize the command input: Flag The syntax is shown below: tar destinationFileName sourceFileName We use the tar command to compress and expand files from the command line. In this post, we'll look at how to compress files with the tar command in Linux, along with some examples of tar in action. You can also compress older and rarely used files and save them for future use which helps you conserve disk space. And compressed files are also easier to copy to remote servers. It helps you reduce file size and share files efficiently. File compression is an essential utility across all platforms. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |