To compress a directory, use:
tar -zcvf <directory_name>.tar.gz <directory-name>
To extract the content of the directory:
-z: Compress archive using gzip program
-c: Create archive
-v: Verbose i.e display progress while creating archive
-f: Archive File name
Until next post,
Sathish Manthani
tar -zcvf <directory_name>.tar.gz <directory-name>
To extract the content of the directory:
tar -zxvf <directory_name>.tar.gz -C /tgt/dir/
Arguments meaning:
-z: Compress archive using gzip program
-c: Create archive
-v: Verbose i.e display progress while creating archive
-f: Archive File name
-x: Extract FilesUntil next post,
Sathish Manthani
No comments:
Post a Comment