Skip to content

Instantly share code, notes, and snippets.

@kristynrb
Last active October 31, 2016 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristynrb/36e6eb62b0b59e8d7832c7319ec91f62 to your computer and use it in GitHub Desktop.
Save kristynrb/36e6eb62b0b59e8d7832c7319ec91f62 to your computer and use it in GitHub Desktop.
wdi-matrix_w01d01_homework

ga

WDIR-MATRIX


Title: These are a Few of my Favorite Things
Type: Homework
Duration: "3:00"
Creator: WDI-Bowie
Adapted by: Kristyn Bryan
Course: WDIR-Matrix
Competencies: Practicing Unix commands and becoming more familiar with file structure
Prerequisites: Command Line & HTML

Introduction

Developing web apps requires a degree of comfort navigating and interacting with your operating system through the command line. In this homework, you will be practicing creating, modifying, and moving files and folders in your terminal to get you practicing Unix commands.

For this homework, you are going to create files and folders to organize your favorite books, movies, and music - then, you're going to reorganize them.

Be sure to use the cheatsheets in the "Additional Resources" section (below) or the notes from today's lesson if you get stuck.

Exercise

Requirements

  • From your home directory, create a folder called "my-favorite-things"; you'll use that folder to do the exercises below
**Organize your favorite books** - in the "my-favorite-things" folder, create a folder called "books" - create a folder in books named after your favorite author (e.g. "mark-twain", or "john-grisham", but avoid spaces!) - create files named after some of the author's books in the author's folder - open the books folder in atom/sublime - edit each file to put a brief description of the book
**Organize your favorite movies** - in the "my-favorite-things" folder, create a folder called "movies" - create a folder in movies named after your favorite actor - create a folder in the actor folder named after the actor's breakthrough movie - create a text file named after the actor's character in the breakthrough movie in the top level "movies" directory - move the text file to the breakthrough movie's folder - look back at Sublime/Atom and edit that text file with a description of the character's role in the movie
**Organize your favorite music** - in the my-favorite-things folder, create a folder called "music" - move into the "music folder" - create a folder called "disco" - create a text file in "disco" called "ymca" - delete the "disco" folder - create a folder called "creed" - delete the "creed" folder - create folders called "one-direction", "the-strokes", and "rihanna" - create a text file in "one-direction" called "what-makes-you-beautiful.txt" - make two copies "what-makes-you-beautiful.txt" - one into "the-strokes" and one into "rihanna" and rename those files with songs by those artists
**Reorganize everything**
  • in the my-favorite-things folder, create a folder called "media"
  • move "books", "movies", and "music" into the "media" folder
**Organize the top music, movies, and books of 2015** - Okay, let's pretend it's still 2015 :) - move to the my-favorite-things folder and copy the "media" folder, then, rename it "2015-media" - in the 2015-media folder, rename each folder to have "2015-" before the title - delete the contents of "2015-music", "2015-movies", and "2015-books" - create a file called "top-ten-movies.html" in "2015-movies" - create a file called "top-ten-songs.html" in "2015-music" - create a file called "top-ten-books.html" in "2015-books" - create an ordered list - using HTML! - of the top 10 movies, songs, and books in each of the appropriate files
**Deliverable**

Be sure you open up your "my-favorite-things" directory in Sublie/Atom, so you can track your progress. Here's a look at what your files/folders should look like after each big step in the exercise:

  • After "Organize your favorite books":

  • After "Organize your favorite movies":

  • After "Organize your favorite music":

  • After "Reorganize everything"

  • After "Organize the top music, movies, and books of 2015"

**Hungry for More?** - Look through the additional resources and do the following
  • look at the top/bottom 10 lines of each file
  • figure out how search through a file from the command line - without opening the file - for a string of text
**Additional Resources**
**Submit Your Work** 1) Take a screenshot of your *complete* file structure with the file open to one of your Top Ten folders. Here's an example:


  1. Send this screenshot in an email to: samuel.weisse@generalassemb.ly AND cc your Squad Instructor by 10:00am Eastern, Tuesday, November 1st. Please make the subject: "Homework for w01d01- Your Full Name - WDIR-Matrix"

Note: This is not how you will be submitting your homework normally. This is just for tonight! We will go over how to submit your homework after your Github lesson on w01d02.

Additional Homework for Tonight 1. Finish your morning lab.
2. Finish your afternoon lab.
3. Finish Fundamentals work.
4. Get some rest!
Squad Info
Neo **Instructor:** - Thom Page
thom.page@ga.co

Students:

  • Kaylie Weable
  • Shannon Matloob
  • Abigail Auslander
<details><summary>Trinity</summary>
**Instructor:**
- Karolin Rafalski <br>
karolin.rafalski@ga.co

**Students:**
- Cameron Cardosi
- Kathryn Ehlmann
</details>

<details><summary>Morpheus</summary>
**Instructor:**
- Kristyn Bryan <br>
kristyn.bryan@ga.co

**Students:**
- Jessica Beardsley
- Stephanie Blondet
</details>

<details><summary>Agent Smith</summary>
**Instructor:**
- Matt Huntington <br>
matt.huntington@ga.co

**Students:**
- Andy Sartori
- Blaine Boudreau
- Sophia Fazal
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment