To archive files, use the command
tar -cf archive.tar file1 file2 file3This command combines file1, file2, and file3 and stores them in archive.tar. The
-cswitch tells tar that you want to create an archive. The
-fswitch indicates that we are working on files.
We can use the following command to extract the Tar Ball we created.
tar -xf archive.tar