Linux Labs

First steps / Stage 7 of 15 · step 8 of 10

Copy and move files

introductory ~12 min
Not running Starting usually ~20 s
Report a problem

Situation

There is an update on the server tomorrow. A colleague asks you to save the configs from ~/src into ~/backup and tidy ~/src while you are at it: mark the notes as old and move the tmp directory with the build log over to the backups.

Task

Make it so that:

  1. ~/backup holds copies of app.conf and db.conf from ~/src, with the originals left in place;
  2. ~/src/notes.txt gets the new name notes.bak in the same directory;
  3. the ~/src/tmp directory, with everything in it, has moved to ~/backup/tmp.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 3
  • Copies of app.conf and db.conf are in ~/backup, originals still in place — not checked yet
  • ~/src/notes.txt renamed to notes.bak — not checked yet
  • Directory ~/src/tmp moved to ~/backup/tmp with everything in it — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…