how do i scp .dotfiles??

Polytropon freebsd at edvax.de
Sun Aug 29 19:35:03 UTC 2010


On Sun, 29 Aug 2010 12:12:11 -0700, merlyn at stonehenge.com (Randal L. Schwartz) wrote:
> >>>>> "'Gary" == 'Gary Kline' <kline at thought.org> writes:
> 
> >> There's a big difference between:
> >> 
> >> cd $HOME && gtar cfz /tmp/xx.tgz . # should get everything
> >> 
> >> and
> >> 
> >> cd $HOME && gtar cfz /tmp/xx.tgz * # will miss all the dotfiles
> >> 
> >> Did you do the latter, by chance?
> 
> 
> 'Gary> 	Sure.  my default is the asterisk.
> 
> Well, there's your problem.  Sometimes, you have to actually think
> about what you're doing. :)

The "problem" (i. e. a convention) is that .* is not part of *,
which includes everything else, even "nothing", and the
form *.* (that looks like the DOS equivalent of "all files")
does seem to omit .*; the spaced form * .* would work as it
contains * (which does not contain .*) and .* (not in *). :-)





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list