- Before copying or moving, look at what already has the destination's name: a directory, a file or nothing.
cpleaves the source in place andmvtakes it away; a directory created in advance, a trailing slash and-iprotect against silent replacement.- A pattern in
rmcomes afterlswith the same pattern, and cleaning a directory comes after acp -rcopy. - The state after a command shows the result —
ls -landcat, not the absence of messages. - The drafts at the start of the lesson vanished without a single error: archive was not a directory, so both
mvcommands read it as a file name.
Step 10 of 10 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson