A web development/programming blog providing info, tips, and tricks on programming languages, scripting, Linux, MySQL and more
tar Cheat Sheet
- -c (--create)
- Create a new archive and write the named files to it
- -t (--list)
- List the contents of an archive
- -x (--extract | --get)
- Extract files from an archive
- -f ARCHIVE (--file=ARCHIVE)
- Use the file ARCHIVE as the archive to perform operations on
- -z (--gzip | --gunzip | --ungzip)
- Read or write archives through ‘gzip’ compression
- -I (--bzip2)
- Read or write archives through ‘bzip2′ compression
- -v (--verbose)
- Display more info about the running operation
- tar -czvf MyArchive Source_file
- Create a tar file named MyArchive and gzip it, from the Source_file with verbose information
- tar -xzvf MyArchive
- Extract the file created above with verbose information

