Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you want to compress many files you first need to join them using another tool. Usually tar is used for that, since it has support for bzip2 (-j) and gzip (-z) integrated. But any other tool that's capable of joining files (and split them when required) will work as well.
There is the -A --concatenate attribute for the tar command but I am not sure exactly what is it for and how to use it. I thought this command was to add additional files.
There is the -A --concatenate attribute for the tar command but I am not sure exactly what is it for and how to use it. I thought this command was to add additional files.
The GNU tar manual explains it all. --concatenate is meant to join two archives, whereas --append is to add individual files to an existing archive.
Notice also, that there are several restrictions on operations on compressed archives. First of all, compressed archives cannot be modified, i.e., you cannot update (‘--update’ (‘-u’)) them or delete (‘--delete’) members from them or add (‘--append’ (‘-r’)) members to them. Likewise, you cannot append another tar archive to a compressed archive using ‘--concatenate’ (‘-A’)). Secondly, multi-volume archives cannot be compressed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.