How To Tar Files And Folders Easily
To compress a file or folder do this command:
in this example, I want to tar my test directory:
Command:
tar -pczf test.tar.gz test/
Now to untar:
Command:
tar xvfz test.tar.gz
To compress a file or folder do this command:
in this example, I want to tar my test directory:
Command:
tar -pczf test.tar.gz test/
Now to untar:
Command:
tar xvfz test.tar.gz