In this article, we are learning and understand on different and popular file archive types of Linux with example.
.tar
TAR stands for Tape Archive. tar is the simple format in which files are combined into a larger file. Handled by the tar command at the command-line. Tar files are not automatically compressed. The chief benefit of tar files is that they record permission and ownership details, making them ideal for backup.
# tar -czf xyz.tar /home/ubuntu/sushan/ ## For Archive # tar -xzf xyz.tar ## For Extract |
# tar -czf xyz.tar.gz /home/ubuntu/sushan/ ## For Archive # tar -xzf xyz.tar.gz ## For Extract |
# tar -cjf xyz.tar.bz2 /home/ubuntu/sushan/ ## For Archive # tar -xjf xyz.tar.bz2 ## For Extract |
# zip -r xyz.zip /home/ubuntu/sushan/ ## For Archive # unzip xyz.zip ## For Extract |