FahamLah

Commands

cp

cp [-r] <from> <to>

Risk: Careful

What it does

Copies a file. The first one stays. It replaces a file with the same name without asking.

When to use it

To make a backup before you change something.

Example

$ cp menu/today.txt menu/today.bak

Back up today's menu.

$ cp -r kitchen kitchen-copy

Copy a folder and everything inside.