Sunday, October 24, 2010

Creating Tar Balls in command line :-)

Working with archives

To archive files, use the command  
tar -cf archive.tar file1 file2 file3
This command combines file1, file2, and file3 and stores them in archive.tar. The -c switch tells tar that you want to create an archive. The -f switch indicates that we are working on files.

We can use the following command to extract the Tar Ball we created.
tar -xf archive.tar

No comments:

Post a Comment