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.
Not very helpful, but from the tar(1) manual page:
Code:
-f, --file ARCHIVE
use archive file or device ARCHIVE
I believe the proper, original naming of the command represents "Tape ARchive".
What tar does, and was originally intended to do, was to concatenate files to put them into one file and then place them onto a physical tape archive ... yeah, "way back when".
Experiment with tar, using no compression and just using, "different, but small, text files". And see what it does. An example:
Rather inefficient I'll grant when the files are tiny, but there you have it. And whatever all the junk is between the filename and file contents is beyond me, but some of it appears able to be decoded, such as the 644 appears to be file privileges.
It's easy enough to try it, but no, that says to extract something named <filename> from the default device, which, depending on what version of tar you have, is either stdin or the (probably nonexistent) tape drive. Starting with version 1.11.5, GNU tar uses standard input and standard output as the default device. Prior versions looked for a TAPE environment variable, or in the absence of that used a compiled-in default device, typically "/dev/nst0".
Not very helpful, but from the tar(1) manual page:
Code:
-f, --file ARCHIVE
use archive file or device ARCHIVE
I believe the proper, original naming of the command represents "Tape ARchive".
What tar does, and was originally intended to do, was to concatenate files to put them into one file and then place them onto a physical tape archive ... yeah, "way back when".
Experiment with tar, using no compression and just using, "different, but small, text files". And see what it does. An example:
Rather inefficient I'll grant when the files are tiny, but there you have it. And whatever all the junk is between the filename and file contents is beyond me, but some of it appears able to be decoded, such as the 644 appears to be file privileges.
They are the user ownership, group assigned, access mask, and dates taken from the inode when the
archive was created. These can be used to restore the file to its original condition. In addition to the minimum, tar has been extended to also include ACLs, and security labels as well.
tar is a backup tool - as such it has to keep many things about the file (the path used when making the
backup is one - so the file name shown is short).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.