Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Thank you for such a good explanation, you said that "except those starting with a dot" mean hidden files will not be included in the list, what if I want to include them in the list or what if the source has many dot files, they will not be copied? Commented Mar 8, 2019 at 9:40
  • @Adnan, yeah, cp ./** dest/ would miss all dotfiles, unless you use shopt -s dotglob in Bash. So it's probably easier to just use cp -r for recursive copies (or cp -a in GNU cp). Commented Mar 8, 2019 at 14:32