Mailing List Archive


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

Re: [tlug] Tar excluding some folders



>>>>> "Susumu" == Susumu ISHIZUKA <sufiyanjp@example.com> writes:

    Susumu> It must be in relative path in the archive.

This isn't quite true; it should be relative to whatever tar considers
the current directory.  That's usually `pwd`, but can be changed with
the -C flag.  This detail is not relevant to Chuck's case, since he's
put the tarball in the current directory and doesn't use -C.  But I
often use tarballs in some other location (.. or /tmp, etc), and
occasionally have found it useful to use the -C flag to fool tar into
rearranging the hierarchical relationship of subtrees.


-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links