Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Introduction to the Terminal Directories and Files Shortcuts and Wildcards

How do I run macpan in the terminal?

Fill in the blank to run macpan.sh within the current directory.

Remember, to run an executable you have to include an absolute or relative path to it. And there's a symbol you can use to specify the current directory...

treehouse:~/workspace/games/macpan$ pwd /home/treehouse/workspace/games/macpan treehouse:~/workspace/games/macpan$ ls macpan.sh treehouse:~/workspace/games/macpan$

2 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Let's say I was outside a directory named mydir, and I wanted to run a script named myscript.sh inside mydir. I would type:

mydir/myscript.sh

Now let's suppose I was inside mydir. To run the same script, I would type:

./myscript.sh

See if you can adapt that information to run the executable specified in the quiz question. And if you want more information, review the videos immediately prior to that quiz.

Yep Molly! that's the right answer. ./macpan.sh