To tar a folder,
tar -czvf Output_File_Name.tar.gz Directory_Name
Example,
If you want to tar a directory called demo ,
tar -zcvf demo.tar.gz demo
which will create a tar file named "demo.tar.gz"
To Untar a Folder,
tar -xzvf Input_File_Name.tar.gz
No comments:
Post a Comment