LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [SOLVED] Problems with .bashrc /commands arent working. (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bsolved%5D-problems-with-bashrc-commands-arent-working-754712/)

davestom 09-12-2009 04:46 PM

[SOLVED] Problems with .bashrc /commands arent working.
 
Dont know if this is the right place to post this topic, sorry if not.

I have "fixed" something in ./bashrc as root, and now no commands work in the root because of my "fix"..

Any advice of how to remake my mistake?

weibullguy 09-12-2009 05:27 PM

Quote:

Originally Posted by davestom (Post 3680397)
Any advice of how to remake my mistake?

Restore your .bashrc from the backup you made right before editing it. Oooops, I'll bet you didn't make a backup did you? Always a good idea.

Option 2, undo the edits you made.

Option 3, post your .bashrc and maybe the error(s) is obvious.

davestom 09-12-2009 05:32 PM

SOLUTION:

If you cant use the .bashrc commands due to changes in .bashrc you've made, you will have to refresh the path in terminal, doing so;
Firstly login as su (if the problem is in the root, as mine);
write the following;
Quote:

PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
export PATH
And then ofc. enter the .bashrc and remake your changes (if known)

pixellany 09-19-2009 07:00 AM

Moved: This thread is more suitable in <Linux-Newbie> and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 09:33 PM.