WINDOWS COMMAND PROMPT

LESSON – INTRO & NAVIGATION

 

separator-blank.png

 

INDIVIDUAL WORK

 

QUESTION 0 – SETUP

 

In Windows, right click on your Desktop and create a folder called cmdWork.  Note that you can place this in your Documents folder if you prefer.

 

Still in Windows, unzip this file and move the content inside your cmdWork folder.

 

In the Command Prompt, type in the commands to navigate to the Lesson01Work directory that is in your cmdWork directory.  This is where you will work today.

 

QUESTION 1 – THE TYPE COMMAND

a)    Go inside the StartHere directory and use dir to see the content of the directory.  You should see three text files.

b)    Try the following:

 

                    type alphabet.txt

 

Notice that it shows you the content of the text file.

c)     Use type to see the content of whodabest.txt.

d)    Use type to see the content of never.txt.

QUESTION 2 – FIND IN THE BLANKS

 

Inside the Lesson01Work directory, you will find a Web directory.  Inside this, you will find many subdirectories with some containing text files called hint1.txt, hint2.txt, hint3.txt and so on up until hint10.txt.

 

Hunt for these files and copy the word that is stored inside each one below.  The word inside hint 1 should be placed on the first line below.  The word inside hint 5 and should placed on the 5th line.

 

_________  _________  _________  _________  _________  _________  __________

 

By ________  _________  __________

 

Place your answer in a file named answer.txt that should be created inside the directory Web.

 

 

QUESTION 3 – NAME GAME

Inside the Lesson01Work directory, you will find a 2013 directory.  Inside, the file allNames.txt contains the name of each student in the class for that year.

 

The other text files are related to each student from that year.  The filename represents the meaning of the name inside the text file.  For example, the file name “awesome.txt” contains Patrick.  So the meaning of “Patrick” is awesome.

 

a)    What is the meaning of the last three names listed in allNames.txt? 

b)    Who’s name did I start with when I created these files?

c)     Who’s name did I end with when I created these files?

d)    Who’s name is the longest?

e)    Can you notice a relationship between the number of characters in a text file and the size of that file?

 

QUESTION 4 – PATH TO RIDDLES

 

Think you’re clever?  Of course you do!  Here are a few riddles to try and figure out:

 

a)    There is a clerk at the butcher shop, he is five feet ten inches tall, and he wears size 13 sneakers. What does he weigh?

 

          The answer can be found at:

     Lesson01Work\Riddles\pears\purple\answer01.txt

 

b)    What word in the English Language is always spelled incorrectly?

The answer can be found at:
Lesson01Work\Riddles\bananas\green\answer02.txt

c)     What has four wheels and flies?

The answer can be found at:
Lesson01Work\Riddles\apples\green\answer03.txt

 

separator-blank.png