Star Wars, the Command Line, and The Battle for the Fate of the Universe
Working in the command line is a key skill to develop as a programmer. It's a big break from what you're used to, and practice makes (eventually) perfect. Let's explore the Star Wars narrative using the command line.
Note: Each file (not directory/folder) you create should be a text file. This means the file will end with the extension of *.txt. For example: jimbo_jones.txt
"A New Hope"
Act I
- In your
Ravenclawdirectory, create a directory calledstar_wars - In your
star_warsfolder, create two new directories:empireandrebellion. - Inside the
empiredirectory, create a .txt file calleddarth_vader - Use the force(or your knowledge of the command line) to add the text "...heavy breathing..." to the
darth_vaderfile. (Don't remember how to do this? Use the 'other force', known as Google or Stack Overflow) - Inside the empire directory, create a .txt file called
emperor_palpatine. - Inside the empire directory, create a directory called
death_star - Move
darth_vaderinto thedeath_star
Act II
- Move back to your
star_warsdirectory, and enter therebelliondirectory - Create a file called
princess_leiaand add the text 'Help me, Obi-Wan...You're my only hope.' - Create a file called
obi_wan - Create a file called
luke_skywalker - Create a directory called
millenium_falcon - Inside the
millenium_falcon, create two files:han_soloandchewy - Move
luke_skywalker,obi-wan, andprincess_leiainto themillenium_falcon - Move the
millenium_falconinto thedeath_star
Act III
- Unload the Millenium Falcon! Move the whole crew from the
millenium_falcondirectory into thedeath_stardirectory - Darth_vader has defeated obi_wan! Delete poor
obi_wan - Our heroes have disabled the tractor beam! Move the whole crew back into the millenium_falcon!
- Move the
millenium_falconback into therebelliondirectory - darth_vader leaves the death_star to pursue Luke! Move him from the death_star into the empire directory!
- Thanks to his practice back home at Beggar's Canyon, Luke blew up the death star! Remove it from the galaxy!
- You win!