Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Integralist/b097d008e86699ec990bd5f5dfd2e672 to your computer and use it in GitHub Desktop.
Save Integralist/b097d008e86699ec990bd5f5dfd2e672 to your computer and use it in GitHub Desktop.
[Copying Files and Directories] #bash #cp #copy #files #directories
# copy src directory into the destination directory
# i.e. you'll end up with compute/src/...
cp -r src ~/Code/rust/compute/
# copy the 'files' from the src directory into the destination directory
# i.e. you'll end up with compute/...
#
# NOTICE the subtle difference! a trailing slash on src/ will
# copy the files within that directory rather than the directory as a whole.
cp -r src/ ~/Code/rust/compute/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment