drkir...@hawk:~$ /usr/local/bin/tar --help
Usage: tar [OPTION...] [FILE]...
GNU `tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.
Examples:
tar -cf archive.tar foo bar # Create archive.tar from files foo and bar.
tar -tvf archive.tar # List all files in archive.tar verbosely.
tar -xf archive.tar # Extract all files from archive.tar.
Main operation mode:
shows three examples of using tar. I agree these are some of the more common
ones, though personally I use the 'j' and 'z' options quite a bit.
However, there are no examples of how to use the longer format options. So how
for example would I the '--atime-preserve=replace' or '--no-same-owner' options?
My initial attempts at doing something like
tar cvfz --posix foo-1.25.tar.gz foo-1.25
resulted in me creating a file '--posix' rather than the required
foo-1.25.tar.gz.
I'm sure I'll work it out in the end, but just a couple of examples where the
long options are used along with the shorter options (c and x being the obvious
example) would be really useful.
Dave