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 Git Basics Getting Started With Git Working With Git Repositories

Console: PATH Enviroment

Hello,

In Console Foundations I changed the PATH so that no commands can be executed. This was obviously an accident, so I don't know how to reverse the effects. Is there a way to do a hard reset on the console here?

Chris Shaw
Chris Shaw
26,676 Points

Hi Justin,

Are you using unix (i.e OS X or Linux) or WIndows?

5 Answers

James Barnett
James Barnett
39,199 Points

When all else fails email Treehouse support help@teamtreehouse.com and let them know all of the details and the troubleshooting steps you've taken this far and they should be able to get you sorted out.

James Barnett
James Barnett
39,199 Points

If you are using the Treehouse console you can try deleting the cookie for console.teamtreehouse.com

This did not work regrettably.

I'm using the treehouse console.

Thanks for all your comments y'all, I'm afraid it just isn't working. Luckily I can just use the windows command prompt or git bash.

James Barnett
James Barnett
39,199 Points

You can also use http://runnable.com/new/bash to experiment with the console.

Even if you have messed up your $PATH environment variable you should still be able to use shell builtin commands, and you can always run commands by specifying their absolute path or relative path from where you are. An example would be running git by typing /usr/bin/git

In order to set your $PATH back to normal you can use the code below by adding it to you .bashrc file. I copied the $PATH from my instance of the treehouse console.

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

You can see about all this here https://teamtreehouse.com/library/console-foundations/environment-and-redirection/environment-variables The info about setting the path is at the end of the video.