~/cp(1) en

CP(1)General Commands ManualCP(1)

NAME

cp - copy a file

SYNOPSIS

cp source destination

DESCRIPTION

Copies a file. The destination has to be somewhere you may write, which for a guest means /tmp — so this is how you get a copy of a note you can then change, the same move you would make with anything on a read-only filesystem. Owning the place is the other way: man su.

A directory needs -r, which is not here, since nothing in the shell can make one.

EXAMPLES

cp about.md /tmp/mine.md

cp /tmp/mine.md /tmp/mine.bak

SEE ALSO

mv(1), rm(1), touch(1), sh(1)

tilenkoren.com2026CP(1)