MOTD CHAPTERS 01 / 05
TODAY'S QUIZ0 / 5 STREAK0 days POINTS0 THE OPERATOROpen

$man 1 cp

Ten things the page says. Every one of them is on your machine right now — run the command above and check.

  1. 01

    Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.[man]

  2. 02
    --attributes-only

    don't copy the file data, just the attributes.[man]

  3. 03
    --backup[=CONTROL]

    make a backup of each existing destination file.[man]

  4. 04
    -b

    like --backup but does not accept an argument.[man]

  5. 05
    --copy-contents

    copy contents of special files when recursive.[man]

  6. 06
    -f, --force

    if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used).[man]

  7. 07
    -i, --interactive

    prompt before overwrite (overrides a previous -n option).[man]

  8. 08
    -H

    follow command-line symbolic links in SOURCE.[man]

  9. 09
    -n, --no-clobber

    do not overwrite an existing file and do not fail (overrides a -u or previous -i option). See also --update; equivalent to --update=none.[man]

  10. 10
    -p

    same as --preserve=mode,ownership,timestamps.[man]

$run --yourself

Copy a file and watch cp tell you it did

cp is silent by default and silently destroys the destination. -v and -n are the two flags that make it answerable.

These commands write files, so run them in a scratch directory:

$ mkdir -p ~/motd-lab && cd ~/motd-lab
~/motd-lab
$ echo 'first draft' > a.txt
$ cp -v a.txt b.txt
$ cp -vn a.txt b.txt
$ ls -l

WHAT YOU SHOULD SEEThe first cp prints 'a.txt' -> 'b.txt'. The second prints nothing and changes nothing, because -n refused to overwrite. Two files, same size.

$quiz -n 5

Five questions, each one taking a term out of a line above. Ten points for each. Tap hear it to have a question read to you; answering plays the verdict.

QUESTION 1 OF 5

Which term completes this line from the page? “Copy SOURCE to DEST, or multiple SOURCE(s) to _____.”

From point 1 above.

QUESTION 2 OF 5

Which term completes this line from the page? “make a backup of each existing _____ file.”

From point 3 above.

QUESTION 3 OF 5

Which term completes this line from the page? “copy contents of special files when _____.”

From point 5 above.

QUESTION 4 OF 5

Which term completes this line from the page? “prompt before _____ (overrides a previous -n option).”

From point 7 above.

QUESTION 5 OF 5

Which term completes this line from the page? “do not overwrite an existing file and do not fail (overrides a -u or previous -i option). See also --update; _____ to --update=none.”

From point 9 above.

Answer all five to bank your points.

$play --chapters 5

Five chapters, three voices. Tap one to jump — the player at the bottom of the screen follows.

download the full edition

$tee --everyone

Know someone with ten minutes and a terminal? Send them today's page. This is the card that appears when you post it:

Share card for cp(1): copy files and directories
2026-09-23 · 1200×630

$su - operator

The Operator has a dispatch on cp(1), and he files them for subscribers only. It is free. Join the club, or read about the series.

MOTD is a weekday reading of one manual page already installed on your own machine. Every statement is quoted from that page or from the GNU info documentation beside it, and every edition names the command that shows you the source.

archive · the operator · about · podcast · Feline Union

NARRATION · 3 VOICES · 01
Last login