Options
-c => Create
-x 🡺 Extract
-v 🡪Verbose
-j 🡪 extract Bunzip file
-z 🡪 extract gzip file
To create the tar file
tar –cvf all.tar folder_name
To create tar.gz
tar –cvzf all.tar.gz folder_name
To create tar.bz2
Tar –cvxf all.tar.bz2 folder_name
To extract the tar file
tar –xfv all.tar
tar –xvzf all.gz
tar –xvjf all.bz2
tar -xf all.tar.xz → it extracts the xz file.
No comments:
Post a Comment