Here is the video version, if you prefer it:
There are other compression commands (such as bzip2) and archiving commands (such as zip). (Shotts, 2019)
zip may be useful; its syntax is:
zip zipFile fileToArchive
where zipFile is the newly created zip file and fileToArchive is the file you want to compress.
If your fileToArchive is a directory, use:
zip -r zipFile fileToArchive
To unzip use:
unzip zipFile
I never used bzip2 so far, but just know that it exists.
Hope you learned something useful!
References
Shotts, W. (2019). The Linux Command Line, Fifth Internet Edition. Retrieved from http://linuxcommand.org/tlcl.php. Pages 261-262; 268-270
Leave a Reply