Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 2.75 KB

README.md

File metadata and controls

65 lines (50 loc) · 2.75 KB

Episode 0: A New Terminal

A long time ago in a Unix environment far, far away, young Jedi padawans who knew only of desktop software were seduced by the dark side of the Force to enter… The Terminal.

Follow the instructions below using all the console commands introduced in Fundamentals, class, or that you find on your own.

Set the Scene

  1. Open the Terminal app
  2. Create a new directory called "galaxy_far_far_away" and enter it.
  3. Create a directory called "death_star", and make the following files inside of it:
  • "darth_vader.txt"
  • "princess_leia.txt"
  • "storm_trooper.txt" blah blah answer
  1. In "galaxy_far_far_away", make a directory named "tatooine" and create the following files in it:
  • "luke.txt"
  • "ben_kenobi.txt"
  1. Inside of "tatooine" make a directory called "millenium_falcon", and in it create:
  • "han_solo.txt"
  • "chewbaca.txt"

Part I

  1. Rename "ben_kenobi.txt" to "obi_wan.txt".
  2. Copy "storm_trooper.txt" from "death_star" to "tatooine".
  3. Move "luke.txt" and "obi_wan.txt" to the "millenium_falcon".
  4. Move "millenium_falcon" out of "tatooine" and into "galaxy_far_far_away".
  5. Move "millenium_falcon" into "death_star".
  6. Move "princess_leia.txt" into the "millenium_falcon".
  7. Delete "obi_wan.txt".
  8. In "galaxy_far_far_away", make a directory called "yavin_4".
  9. Move the "millenium_falcon" out of the "death_star" and into "yavin_4".
  10. Make a directory in "yavin_4" called "x_wing".
  11. Move "princess_leia.txt" to "yavin_4" and "luke.txt" to "x_wing".

Part II

  1. Move the "millenium_falcon" and "x_wing" out of "yavin_4" and into "galaxy_far_far_away".
  2. In "death_star", create directories for "tie_fighter_1", "tie_fighter_2" and "tie_fighter_3".
  3. Move "darth_vader.txt" into "tie_fighter_1".
  4. Make a copy of "storm_trooper.txt" in both "tie_fighter_2" and "tie_fighter_3".
  5. Move all of the "tie_fighters" out of the "death_star" and into "galaxy_far_far_away".
  6. Explode "tie_fighters" 2 and 3.
  7. Touch a file in "x_wing" called "the_force.txt".
  8. Destroy the "death_star" and anyone inside of it.
  9. Return "x_wing" and the "millenium_falcon" to "yavin_4".
  10. Celebrate.

Already feeling comfortable with these commands and want an extra challenge? Try doing the following:

  • Try applying one command to multiple files at once.
  • Try applying one command to all files in a single directory (where necessery)
  • Try applying one command to all files that match a pattern.
  • Find and use command line shortcuts.
  • Try using a mix of absolute and relative paths.