21 lines609 B

Lesson 2: Moving and copying files

Moving and copying files comes up in almost every real shell project. We start with the why, then write code together.

Read the full lesson: https://glibcode.net/courses/linux-shell/lessons/2

Files

  • commands.sh: copying, moving and removing safely

Tip: man pages are long; tldr <command> gives you the common cases.

Run it

# type the commands from commands.sh one by one; don't run it as a script

Exercises

See exercises.md. Ask in the forum once you've tried.