Why does cp -r .*/ _dotfiles/ copy all files and directories and not just hidden directories?
cp -r .*/ _dotfiles/
The glob pattern .* matches the current directory (.) and the parent directory (..).
cp -r .[^.]*/ _dotfiles
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
6 years ago