In Unix, the name of the
tar
command is short for tape archiving, the storing of entire file systems onto magnetic tape, which is one use for the command. However, a more common use for tar
is to simply combine a few files into a single file, for easy storage and distribution. Must Read : Learn more about VI editor here To combine multiple files and/or directories into a single file, use the following command: tar -cvf file.tar inputfile1 inputfile2 Replace inputfile1
and inputfile2
with the files and/or directories you want to combine. You can use any name in place of file.tar
, though you should keep the.tar
extension. If you don't use the f
option, tar
assumes you really do want to create a tape archive instead of joining up a number of files. The v
option tells tar
to be verbose, which reports all files as they are added. To separate an archive created by tar
into separate files, at the shell prompt, enter: tar -xvf file.tar Must Read : Learn more about find command here A good article of Tar/untar command can be found here. [contact-form][contact-field label='Name' type='name' required='1'/][contact-field label='Email' type='email' required='1'/][contact-field label='Website' type='url'/][contact-field label='Comment' type='textarea' required='1'/][/contact-form]