How to tar and Untar files in unix
To Tar Files of a directory and sub directories recursively:
tar cvzf foo.tgz freshershome
Will tar the directory freshershome (and its files/subdirectories) into a tar file named foo.tgz.
To extract gzip-1.2.4.tar and compile the sources on Unix systems, do:
tar xvf freshershome.tar
tar -xzvf freshershome.tar.gz
Above will extract freshershome.tar.gz:
Will work on .tar.gz (or .tgz). Take out the ‘z’ for a plain .tar. Replace it with a ‘j’ for .tar.bz. Run ‘man tar’ for more complete instructions on using tar.
When you use the different flags in untarring the file you should mention what the purposes of the flags are.-xzvf If people want help in these matters, they don’t want to know just what to do, they want to know why they are doing it and what it is doing. Thanks
yes i requries