Linux Server and Workstation Configuration How To

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
tar PDF Print E-mail
Friday, 19 February 2010 13:51
AddThis Social Bookmark Button

Command tar

Creates archive files or extract files from archives.

Syntax

tar [options] file_or_directory

Options

-c creates a new archive.
-d compares the files from the archive files from the current directory.
-r adds the files in the archive.
-t displays the contents of the archive.
-x extracts files from the archive.
-C directory extracts the files in the specified directory.
-f file read the archive from the specified file.
-L n determines the size of the tape to n kilobytes.
-N date archive only files newer than specified date.
-T file archives or extract files with names listed in the file file.
-v verbose.
-z compresses or decompresses the archive with gzip.
-j compresses or decompresses the archive through bzip2.

Description

The tar command creates an archive file, or extract files from existing archives.

 

Add comment


Security code
Refresh

Useful Links

Follow us on ...

  • Digg: hgevs
  • Facebook Page: 180986722511
  • Linked In Group: 2571120
  • Ning: linuxconfignet
  • Twitter: linuxconfignet

Friends

Thanks David Ayvazyan for provided useful information and discussions.
www.gnu.am (Armenian Translation)