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 trialJustin Hein
14,811 PointsConsole: 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?
5 Answers
James Barnett
39,199 PointsWhen 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
39,199 PointsIf you are using the Treehouse console you can try deleting the cookie for console.teamtreehouse.com
Justin Hein
14,811 PointsThis did not work regrettably.
Justin Hein
14,811 PointsI'm using the treehouse console.
Justin Hein
14,811 PointsThanks 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
39,199 PointsYou can also use http://runnable.com/new/bash to experiment with the console.
Hayden Marcus
9,181 PointsEven 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.
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsHi Justin,
Are you using unix (i.e OS X or Linux) or WIndows?