| Tar Command Usage |
|
|
| Computing - Linux |
|
An archive is a single file that has a collection of several other files. On Windows, the ZIP format is a commonly used archive format and on Unix and other Linux Operating System's, the tar (Tape ARchive) format is commonly used. Creating a tar file As an example, a listing from a directory is shown below: [tsc@localhost ~]$ ls Let us create a tar file named klipper.tar that holds all the .png files. The 'tar' command is shown below: [tsc@localhost ~]$ tar -cvf klipper.tar klipper_configure_actions.png klipper_configure_gen.png klipper1.png klipper_configure_short.png In the above cvf denotes the following: c : create a new archive v: verbosely list files processed f: archive file You can also use wildcards in the above example as follows: tar -cvf klipper.png *.png List files in the Archive tar -tvf [file] produces a listing of the archived files verbosely. [tsc@localhost ~]$ tar -tvf klipper.tarExtract files from Archive tar -xvf [file] extracts files from the archive verbosely. Output as follows: [tsc@localhost ~]$ tar -xvf klipper.tar External Reference
Trackback(0)
Comments
(3)
written by Chris , March 11, 2009
I've seen plenty of examples of how to list archive contents and create archives, but what I can't find is a way of DELETING files from an archive. I know you have to use the --delete function, but any efforts I have tried have resulted in "Abort trap". If it helps I am trying to do this from the command line in Apple OSX 10.4 (Darwin)
Votes: +0
report abuse
vote down
vote up
|
| Last Updated on Wednesday, 14 November 2007 21:18 |
Syndicate
now browsing!
We have 40 guests onlineTraining
| UPK TrainingUPK Developer Training Course Description Overview Understanding Developer menu and toolbar itemsSetting Developer PreferencesManaging FoldersManaging DocumentsCreating Views + Full Article |
| More on Training |
Main Menu
Featured
| Track Change Feature in PowerPointTrack Changes is a feature that helps keep track of the revisions made to a document and is commonly used when a document passes through a review cycle. How to enable Track Change feature in... + Full Article |
| More Featured Articles |




Use the 'rm' function instead of delete function. It should be good. I just tried this on an UNIX box though not sure about Apple OS