Andris wrote:
On Wed, Nov 19, 2008 at 10:06 AM, Andris <[EMAIL PROTECTED]> wrote:
If you are at /home/daniell, the tar tries to find the files at
/home/daniell/home/daniell. Try:
tar -C / -cvf test.tar ./daniell/.ksh*


Sorry, try this:
tar -C / -cvf test.tar .ksh*

According to man 1 tar:

-C directory
[...] when creating, the specified files will be matched from the directory.

So it should read the files from /

Anyway, it doesn't work the other way either:
$ tar -C / -cvf test.tar .ksh*
tar: Unable to access .ksh_logout: No such file or directory
tar: Unable to access .kshrc: No such file or directory
tar: WARNING! These file names were not selected:
.ksh_logout
.kshrc

Daniel

--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1

Reply via email to