In this lesson we will show and tell two popular methods of compress and uncompress files and folders:
The program called tar can be used to backup/compress and transfer files/folders easily. With tar you can archive as well as compress. Before using tar there are a few flags you want to be familiar with.
-c flag = Create a new archive.
-v flag = Verbosely list files processed.
-f flag = The archive file.
-x flag = Extract files from an archive.
-j flag = Filter the archive through
-z flag = Filter the archive through
-C flag = Uncompress/extract to a defined directory.
Lets say we have a folder filled with files that we want to archive. To do so we simply do the following.