bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Need a couple of more complex examples


From: Dr. David Kirkby
Subject: [Bug-tar] Need a couple of more complex examples
Date: Sun, 01 Nov 2009 17:18:55 +0000
User-agent: Thunderbird 2.0.0.21 (X11/20090323)

address@hidden:~$ /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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]