Linux/Unix Commands





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
LINUX / UNIX cmd
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Introduction
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in A
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in B
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in C
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in D
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in E
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in F
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in G
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in H
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in I
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in J
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in K
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in L
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in M
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in N
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in P
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in R
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in S
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in T
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in U
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in W
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in Y
Forums Ask your doubts
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example More about Linux
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Feedback
 





tar Linux Commands


Tutorials Linux-commands

Topic

What is Linux tar Command?



Explanation

tar COMMAND:
     tar command is used to create archive and extract the archive files.

SYNTAX:
  The Syntax is
     tar [options] [archive-file] [File or directory to be archived]

OPTIONS:
     
-c Creates Archive
-x Extract the archive
-f creates archive with give filename
-t displays or lists files in archived file
-u archives and adds to an existing archive file
-v Displays Verbose Information
-A Concatenates the archive files



EXAMPLE:
     
  1. To archive a directory or file :
    tar -cvf backup.tar /etc

    This command creates a tarfile called backup.tar which is the archive of /etc directory.
    Where,
    backup.tar- Is a tar file created
    /etc- Is a directory archived

  2. To archive a directory or file and store it in a storage device:
    tar -cvf /dev/fd0 /home/user1/HGB

    This command will archive /etc directory and store it in floppy-disk.
    Where,
    /dev/fd0- Is a floppy-disk name where the archive is stored
    /home/user1/HGB- Is a directory archived

  3. To Extract the archive:
    tar -xvf backup.tar

    This command will extract the backup.tar file

  4. To List The File In An Archive:
    tar -tvf backup.tar

    The above command will display the files and directories that archived in backup.tar.





A Note

Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


Other Links

web hosting

 

Free Hosting

Top Hosting Companies