Tar is one of the most common utility in linux to archive files and directories. Tar- Tape Archive
Syntax:
#tar [options]
operations: create,update,append etc
options:
-C --directory,
-f --file,
-j --bzip2,
-v --verbose,
-z --gzip
#tar -cvf home.tar /home
For extract :
#tar -xvf home.tar
#tar -cjvf /home home_bzip2.tar
(Compression using bzip2 is more compressive form than normal)
#tar -czvf /home home_gzip.tar
( Compression using bzip2 is more compressive form than bzip2)
To check the size of tar in human readable form:
#ls -lh *.tar
For more info type "man tar"
Syntax:
#tar
operations: create,update,append etc
options:
-C --directory,
-f --file,
-j --bzip2,
-v --verbose,
-z --gzip
#tar -cvf home.tar /home
For extract :
#tar -xvf home.tar
#tar -cjvf /home home_bzip2.tar
(Compression using bzip2 is more compressive form than normal)
#tar -czvf /home home_gzip.tar
( Compression using bzip2 is more compressive form than bzip2)
To check the size of tar in human readable form:
#ls -lh *.tar
For more info type "man tar"


0 comments:
Post a Comment