24
ter Egg Hun t using terminal

Easter Egg Hunt

  • Upload
    ginger

  • View
    41

  • Download
    0

Embed Size (px)

DESCRIPTION

Easter Egg Hunt. using terminal. Step 1 – Get Easter Egg. Using any web browser (Internet Explorer, Firefox, Safari, Chrome) go to Meetup.com Locate Reno Tahoe Women Who Code MeetUp page Find photos on the menu Note the Easter Egg image. Step 2 – Hide Easter Egg. - PowerPoint PPT Presentation

Citation preview

Page 1: Easter Egg Hunt

Easter

EggHun

tusing terminal

Page 2: Easter Egg Hunt

Step 1 – Get Easter Egg

•Using any web browser (Internet Explorer, Firefox, Safari, Chrome) go to Meetup.com•Locate Reno Tahoe Women Who Code MeetUp page•Find photos on the menu•Note the Easter Egg image

Page 3: Easter Egg Hunt

Step 2 – Hide Easter Egg

•Right click on the Easter Egg image•Select Save Image As•Enter easter_egg.jpg as file name•Save in the location that comes up - DON’T SELECT A DIFFERENT LOCATION

Page 4: Easter Egg Hunt

Before we start hunting for our Easter Egg, let’s learn a little about

terminal

Page 5: Easter Egg Hunt

What is terminal?It might be easier to define

what terminal isn’t.

It isn’t a graphical user interface (GUI). Most computer users issue commands using icons, menus and mice. This method uses a GUI.

Page 6: Easter Egg Hunt

Example of GUI•Clicking an icon in your dock to run a program.•Touching a tile in Metro view to run a program.•Double clicking a folder to see what is inside.•Double clicking a picture to view it.•Double clicking a song to hear it.•Using File menu to open a document.•Dragging a file to the trash.

Page 7: Easter Egg Hunt

Okay, terminal is not a GUI. What is it?

terminal is the way to issue instructions to a computer by typing commands.

Page 8: Easter Egg Hunt

Why would I want to use terminal?

• It’s how programmers talk to their computers.• It’s more efficient then using GUI.• It’s more flexible and configurable.•Most of the commands you’ll need to issue don’t have a GUI equivalent.

Page 9: Easter Egg Hunt

The irony is that you’ll use a GUI to get to terminal. Here’s how.

P.S. terminal is called Command Prompt on Windows.

Page 10: Easter Egg Hunt

Get to terminal on Mac•Using Finder, locate your Application folder.•Within the Application folder, locate Utilities.•Within the Utilities folder, click on terminal. This will add an icon in your Dock that looks like a small black screen.•Right click the terminal icon in the dock, select Options, Keep in Dock.

Page 11: Easter Egg Hunt

Get to terminal on PCWindows 7•From Start Menu, All

Programs, locate Rails Installer folder.•Right click on Command

Prompt with Ruby and Rails and add to Taskbar.•Double click on icon to

launch.

Windows 8•From Charms Bar, select

Search and search for Command Prompt with Ruby and Rails.•Right click on same to and to

Taskbar.•From Desktop, double click

icon to launch.

Page 12: Easter Egg Hunt

To find your Easter Egg, you need three terminal

commands.

Page 13: Easter Egg Hunt

pwd

Where am I?

Page 14: Easter Egg Hunt

ls

What is here?

Page 15: Easter Egg Hunt

cd

Go ↑ (cd ..) Go ↓ (cd folder )

Page 16: Easter Egg Hunt

Go ahead and practice those three commands on your own

computers.

Page 17: Easter Egg Hunt

Just one more bit of information before you start your Easter Egg hunt.

You need to understand your computer’s file system.

Page 18: Easter Egg Hunt

terminal knows nothing about shortcuts

Your computer creates shortcuts for locations on your hard drive.

Some examples are Documents, Pictures, Favorites and Desktop.

The real structure of your computer’s storage is accessible by referencing Macintosh HD or Windows C:

Page 19: Easter Egg Hunt

Windows

Page 20: Easter Egg Hunt

Mac

Page 21: Easter Egg Hunt

Step 3 – Find easter_egg.jpg

•Navigate your hard drive using terminal•Use pwd to find out where you are starting•Use ls to see folders below you•Use cd folder to move down•Use cd .. to move up•Hunt for your egg!

Page 22: Easter Egg Hunt

Some parting comments about terminal.

Page 23: Easter Egg Hunt

Be Careful

•terminal is powerful•There is no undo•There are no ‘Are you sure?’ prompts •A typo can have unexpected consequences

Page 24: Easter Egg Hunt

Next Steps

To learn more commands, check out “The Command Line Crash Course” at

http://cli.learncodethehardway.org/book/