![]() ![]() However, this would take more time to compress and decompress. bz2 file provides more compression compared to gzip. ![]() An example of this is shown below: tar -cvzf sampleArchive.tgz /home/sampleArchive Creating a. The additional option z represents gzip compression. An example of this is: tar -cvzf /home/sampleArchive If you want better compression, then you can also use. v – shows a verbose description of the compression progress.The command uses -cvf options which stand for: Here /home/sampleArchive is the directory which needs to be compressed, creating sampleArchive.tar. An example of such an archive is: tar -cvf sampleArchive.tar /home/sampleArchive tar compressions for a file as well as directories. Before we start, you’ll need to SSH into your VPS. Let’s learn what basic operations you can perform by using tar. To reduce the usage of space on your system, since compression will occupy less space.Take a backup of your website, data or anything else.To transfer a huge collection of files and folders from one server to another.If you are working on Linux based systems and require file compression.While this helps us understand tar’s benefits, one question to answer is under what scenario would you choose to use it? ![]() This is available on Android firmware as well as supported older Linux flavors.
0 Comments
Leave a Reply. |