command used to archieve files and directories into a single file.

  tar – it is used for archieving files and directories into a single file

  Format : tar [options] destination source

  Eg1: tar –cvf backup.tar /etc

  Here it creates a backup for the directory /etc and store it in the present working directory.

  Eg2: tar –xvf backup.tar

  Here it will untar the backup file

  • 22 Users Found This Useful
Was this answer helpful?

Related Articles

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...