extract tar to destination 1

extract tar to destination

tar xf file.tar.gz -C /root/Desktop/folder

Here is what the above code is Doing:
1. The tar command is used to create a tar file.
2. The -c option is used to create a new tar file.
3. The -v option is used to display the progress of the tar file creation.
4. The -f option is used to specify the name of the tar file.
5. The -z option is used to compress the tar file using gzip.
6. The -x option is used to extract the tar file.
7. The -C option is used to specify the directory where the tar file will be extracted.

Similar Posts