mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-01 05:21:06 +01:00
9 lines
261 B
Plaintext
9 lines
261 B
Plaintext
# Create a copy of a file
|
|
cp ~/Desktop/foo.txt ~/Downloads/foo.txt
|
|
|
|
# Create a copy of a directory
|
|
cp -r ~/Desktop/cruise_pics/ ~/Pictures/
|
|
|
|
# Create a copy but ask to overwrite if the destination file already exists
|
|
cp -i ~/Desktop/foo.txt ~/Documents/foo.txt
|