In the above statement, you will be creating a tar of the directory /dirname with the name “output.tar” with the modifier flags -cvf. The modifier flags for tar ball are as follows : -c : Create a tar ball. -v : Verbose output (show the progress). -f : Output tar ball archive file name. -x : Extract all files from the archived tar. -t : Display the contents (file list) of an archive. Now to extract a tar ball is just as easy :
tar -cvf output.tar /dirname
The above command will untar ball output.tar in the current directory that you are in.
tar -xvf output.tar