1

Why does cp -r .*/ _dotfiles/ copy all files and directories and not just hidden directories?

1 Answer 1

4

The glob pattern .* matches the current directory (.) and the parent directory (..).

Try this:

cp -r .[^.]*/ _dotfiles

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .