Change files deliberately

Chapter 3 of 6 · 5 lessons

Creating, replacing, moving, and removing names have different consequences. These lessons connect those operations to the access rules that govern them. They assume familiarity with paths, pwd, ls, and reading files. Commands use a POSIX-style shell on Linux; examples that change files belong in a new, empty, disposable directory. Confirm its location with pwd before starting; do not substitute an existing project directory. Each lesson’s examples start fresh unless it says otherwise.

For each lesson needing a fresh directory, first return to the practice directory from chapter 1 and confirm it with pwd. Create a uniquely named subdirectory with mkdir lesson-name; if it already exists or creation fails, stop and choose a different unused name. Enter it with cd lesson-name only after creation succeeds, then confirm with pwd. Replace lesson-name consistently with your chosen name. Return to the practice directory before creating another lesson’s subdirectory. These spaces separate examples; they are not a security boundary.

  1. Create and edit text
  2. An optional terminal editor
  3. Copy, move, and remove
  4. Who can access a file?
  5. Change permissions and ownership