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
Joey LoForti
Courses Plus Student 1,864 PointsDeep Dive Console Foundations
I messed up my PATH or something. I edited .bashrc like what's his face did in the video and now no commands will work from the prompt treehouse ~ $ For example I type env and I just get an error saying /usr/bin or something is not included the path environment variable. I tried refressing the website and whatever I did to my PATH is permanent. I'm trying to edit .bashrc with nano again to undo whatever I did but I cant even access nano. I can't even use ls -l What the heck did I do and how do I fix it?
4 Answers
Patrick Cooney
12,216 PointsIt sounds like you may have jacked up your PATH pretty bad. so what you'll have to do now is type this into the terminal exactly as it appears here: /usr/bin/nano /home/treehouse/.bashrc this tells the computer you want to use nano which is located at /usr/bin to open .bashrc located in /home/treehouse/. Since nano would normally be in your PATH you wouldn't have to explicitly declare where it is but since your PATH is screwed up you have to tell the computer where to find it. If you can't fix it, post your PATH line here so we can take a look at it for you to let you know where you may have gone wrong.
Patrick Cooney
12,216 PointsWith the font the forum uses it looks like there is a space between treehouse/.bashrc but there's not, the only space should be between /nano and /home
Joey LoForti
Courses Plus Student 1,864 PointsThanks a lot man. I managed to fix it. sorry it took so long to get back to you I appreciate the help. This is my first time ever touching Linux in my life so I can use all the help I can get.
Adrian Fisher
5,229 Pointshow did you fix it? I did the same exact thing somehow? but now that I'm in the .bashrc I can't figure out how to fix it
Patrick Cooney
12,216 PointsThe command line takes a while to get used to but once you do it's very powerful. I had my Mac for about 5 years and had literally only opened Terminal (the command line app) about 3 times before I started messing with Rails last year. It took me a good 3 months or so of using it several times a week before I got really comfortable with it. Now I can, fairly competently, admin a virtual private server through SSH without a problem. Stick with it and after a while you'll have a good handle on all the common commands you'll use on a regular basis. Good luck!