blentell / game-of-terminals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Game of Terminals

A Game-of-Thrones-themed Bash exercise.

Set Up

If you're on MacOS, go ahead and open up the Terminal application (found inside Applications > Utilities).

If you're on Windows, you'll need to install a Terminal. The easy way is to install an application called Git Bash which you can download here. A better but more difficult to set up option is to set up WSL2. WSL2 is my personal preference although both options will work fine.

Instructions

You won't need to submit anything on GitHub for this assignment so don't worry about forking this repository.

Do all of the following steps using the command line

  1. Navigate to your workspace directory. If you don't have a workspace directory, go ahead and create one (your home folder is a good location).
  2. Inside workspace, create a new folder called game-of-thrones
  3. Navigate into this new directory and create the following new folders
    • winterfell
    • kings-landing
    • the-wall
    • the-narrow-sea
  4. Inside winterfell, create the following files
    • jon-snow.md
    • sansa.md
    • arya.md
    • ned.md
  5. Inside kings-landing, create the following files
    • cersei.md
    • tyrion.md
    • jaime.md
  6. Inside the-narrow-sea, create the following directory
    • daenerys
  7. Finally, create the following three files inside the daenerys folder
    • dragon-1.md
    • dragon-2.md
    • dragon-3.md

Now let’s fight for iron throne

  1. Move the file ned.md into the kings-landing folder
  2. Move jon-snow.md inside the the-wall folder
  3. Move arya.md and sansa.md inside the kings-landing folder
  4. Rename daenerys folder to mother-of-dragons
  5. Remove the ned.md file
  6. Move mother-of-dragons inside of the the-wall folder
  7. Remove dragon-3.md
  8. Move sansa.md and arya.md inside the winterfell folder
  9. Move jon-snow.md file and mother-of-dragons folder inside the winterfell folder
  10. Move jaime.md and tyrion.md into the winterfell folder
  11. Move everyone from the winterfell folder except sansa.md into the kings-landing folder
  12. Remove cersei.md
  13. Remove jaime.md
  14. Remove dragon-2.md
  15. Remove everyone from kings-landing
  16. Move sansa.md to kings-landing

And finally, submit your work

To submit your work, go to your command line, navigate to game-of-thrones, and type the following commands:

  1. clear
  2. ls winterfell
  3. ls kings-landing
  4. ls the-wall
  5. ls the-narrow-sea

Now, take a screenshot of your command line application and submit that screenshot on Populi.

About