Alex Donald
  • Projects
  • Reference
  • About
  • Contact

Copy all files

13 January, 2016
CLI • Bash
Source: http://endlessgeek.com/2014/02/linux-copy-directory-contents-another-directory/

Copy all files from one directory to another (including dotfiles)

cp -a old/. new

This command says copy cp, recursively -a from old/. (the present directory . from within old) to new

© 2022 Alex Donald · pgp.txt