Server Admin Search
Articles Category
Linux TAR Command
- Details
- Category: Commands
- Published on Saturday, 07 May 2011 03:37
- Written by Server Administrator
- Hits: 545
Using Tar to zip and unzip files.
I use tar all the time to help zip and archive data on the servers I run. Here are a few tricks I use. If there are any questions, see the forum at forum.the-server-admin.com.
To archive all txt files I use the following command:
tar cvzf archive.tgz *.txt
To extract the contents of a tar file use:
tar xvzf archive.tgz
If you have a tar.zip use:
tar xfv *.zip.tar

