Linux: Copy/Rename File

By Xah Lee. Date: .

Copy a file/dir

cp fileName newFileName
Copy a file
cp -r dirName newName
Copy a dir

Move/Rename File/Dir

mv fileName newName
Rename file, or move to a diff dir.

Directory and Files