Last active
April 24, 2024 05:48
-
-
Save Integralist/b097d008e86699ec990bd5f5dfd2e672 to your computer and use it in GitHub Desktop.
[Copying Files and Directories] #bash #cp #copy #files #directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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