Linux Labs

First steps / Stage 7 of 15

Creating and organising files

Not running Starting usually ~20 s
Leave the lesson

Step 6 of 10 · on a machine · 4 min

Check the result

Before cleaning, you save the directory whole; afterwards you check the state. You pick the commands.

A command that finished without errors does not prove the result: both mv commands at the start of the lesson were silent too. So check the state at the end: ls -l for names and types, cat for the contents of short files, and separately that whatever had to stay untouched is intact. One command compares the copy with the original: ls config config.bak lists both directories.

Exercise · do it

Back up a directory before cleaning it

In ~/file-lab, make a backup of the config directory named config.bak, with everything inside it. Then delete the temporary *.tmp files from config; config.bak must keep them.

Sign in and start The machine is available after signing in

Goals · 0 of 2

  • Copy the config directory to config.bak not done yet
  • Delete the temporary files from config only not done yet

Step goals

0 of 2
  • Copy the config directory to config.bak — not done yet
  • Delete the temporary files from config only — not done yet
Ubuntu 24.04

Step goals

0 of 2
  • Copy the config directory to config.bak — not done yet
  • Delete the temporary files from config only — not done yet
Loading…