~/ learn/ comp-325/ cards/ Copying, moving, removing — and the permissions each one needs
1 of 10

The error-driven cp sequence, ending with the flag that carries the timestamp

The error-driven cp sequence, ending with the flag that carries the timestamp

Answer

cp nosuch.txt copy.txt cp secret.txt copy.txt cp alpha.txt copy.txt cp -f alpha.txt copy.txt cp -fp alpha.txt copy.txt ls -l alpha.txt copy.txt

Three different failures — missing source, unreadable source, unwritable destination — then -f to force, then -fp so the copy keeps the original modification time.

S&K 3e ch6 §6.3

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/e76bd209-307b-40da-a2dd-90a12df33763/flashcard utf-8 LF