A collection of scripts, errors & resolutions, and code snippets ranging from daily DBA tasks to Linux Administration, to web design using the new HTML5 and CSS3.
Saturday, 16 July 2011
Linux - Compress tar file
To create a compressed file of a directory you can use the tar command as follows:
$ tar -cvf <output name> <file to tar>
Flags
-c
Create file
-x
Extract or restore file
-v
Output the name of each file
-f
Use the tarfile argument as the name of the tar file.
No comments:
Post a Comment
Please feel free to leave a comment