maart@cs.vu.nl (Maarten Litmaath) (07/04/89)
jonathan@cs.keele.ac.uk (Jonathan Knight) writes:
\...
\> $ cat > excluded
\> ./excluded
\> ./GUGU.tar
\> $ tar cvfX GUGU.tar excluded .
\
\Overkill.
\ $ tar -cvpf /usr/tmp/GUGU.tar .
Of COURSE I knew the `X' option was overkill for THIS particular problem.
However, I wanted to demonstrate how to use it, because:
1) The original poster had been unable to extract the exact
command sequence from the man pages. You know what I did?
- I just went through the source.
Which smiley is appropriate here? :-) or :-(
2) The `X' option can do far more than your solution.
--
"I HATE arbitrary limits, especially when |Maarten Litmaath @ VU Amsterdam:
they're small." (Stephen Savitzky) |maart@cs.vu.nl, mcvax!botter!maart
maart@cs.vu.nl (Maarten Litmaath) (07/04/89)
samlb@magellan.arc.nasa.gov (Samuel B. Bassett) writes:
\... cd ~
\ mkdir tmp
\ cd tmp
\ tar cvf GUGU.tar ..
\ mv GUGU.tar <wherever>
\ cd ..
\ rmdir tmp
SunOS 3.5 tar WILL include ../tmp/GUGU.tar.
I suspect your tar will do the same; have you checked afterwards with
tar vtf GUGU.tar?
\ Actually, the last parameter (directory to archive) can be
\anything -- you could say:
\
\ cd ~
\ tar cvf bin.tar /bin
THIS is a rather different story! The tar file isn't placed into the file
hierarchy being tarred, so it's obvious this command will work.
^^^^^^
Where's the command `feather'? :-)
BTW: Where does that st.... name `GUGU' stand for, Gill?
--
"I HATE arbitrary limits, especially when |Maarten Litmaath @ VU Amsterdam:
they're small." (Stephen Savitzky) |maart@cs.vu.nl, mcvax!botter!maart