Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 448 Bytes

cp.md

File metadata and controls

21 lines (16 loc) · 448 Bytes

CP

Copies a file to another location.

# Copies the file "file.md" to the folder "files""
cp file.md /files/

Can also be used to create a copy of files in the pwd if you specify a file name and not a folder name.

# Creates a second file called "b.md" from "a.md"
cp a.md b.md
# Copy all files from ~/some_folder to ~/Documents/another_folder"
# You're in ~/some_folder
cp * ~/Documents/another_folder