Home \ Tar – create archive of all the files and subdirectories
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: