LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2012, 05:36 AM   #1
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 121

Rep: Reputation: 2
What's the difference between "tar -A" and "tar -r" ?


Any tar gurus lurking the newbie forums? I have a question for you:

--append and --concatenate look the same to me. What is the real difference between them?

Last edited by chicken76; 07-06-2012 at 06:54 AM.
 
Old 07-06-2012, 05:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the man page makes it pretty clear:

Quote:
-A, --catenate, --concatenate
append tar files to an archive

-r, --append
append files to the end of an archive
so -r will take a regular file list as input, -A will take an existing tar file.
 
Old 07-06-2012, 05:51 AM   #3
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 2
I'm sorry, but the way it's formulated is not perfectly clear to me.
So, -A will take a tar archive and attach it to another tar archive?
And -r will take a regular file, compress it if specified, and add it to an existing archive?
Is this correct?
 
Old 07-06-2012, 06:03 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yep
 
Old 07-06-2012, 06:54 AM   #5
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 2
Thanks. Added some rep.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Invalid tar magic" error msg. when I try to tar ldmud *.tar file in DSL pixxi451 Linux - Newbie 4 07-04-2010 08:32 AM
"tar -xzf" error: "tar.child died with signal 13" vlsi Linux - General 4 05-26-2009 02:04 AM
tar "Error exit delayed from previous errors" using "-C /" ToK Linux - Software 2 03-19-2008 06:49 AM
how do you install programs extracted from "tar.gz", "bz2", etc? shoelessworm Ubuntu 13 04-12-2006 02:24 PM
How to "cp" or "rm" or "tar" all the files except a certain file? cqmyg5 Slackware 7 04-07-2006 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration