Tar – create archive of all the files and subdirectories

Post

1 comment   |   Linux, Useful



If you need to create tar archive with example name:

tar -cvf example.tar /home

To create tar.gz archive of folder home:

tar -zcvf example.tar.gz /home

To unpack a tar.gz file, you can use the tar command from the shell. Here’s an example:

tar -xzf example.tar.gz

Leave a Reply

  1. Tar – create archive of all the files and subdirectories | sqlphphelp06-01-11