how do i scp .dotfiles??

Mike Clarke jmc-freebsd2 at
Sun Aug 29 20:08:13 UTC 2010

On Sunday 29 August 2010, Polytropon wrote:

> 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 *). :-)

The problem with using .* as a wildcard for hidden files is that it will 
include .. which is almost certainly not what you want. For example 
rm -r .* can be disastrous. A safer wildcard for hidden dotfiles and 
everything else could be .[^.]* *

Mike Clarke

More information about the freebsd-questions mailing list