LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2009, 04:46 PM   #1
davestom
LQ Newbie
 
Registered: Sep 2009
Location: Copenhagen
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
[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?

Last edited by davestom; 09-13-2009 at 04:23 AM.
 
Old 09-12-2009, 05:27 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by davestom View Post
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.
 
Old 09-12-2009, 05:32 PM   #3
davestom
LQ Newbie
 
Registered: Sep 2009
Location: Copenhagen
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
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)

Last edited by davestom; 09-13-2009 at 04:23 AM.
 
Old 09-19-2009, 07:00 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usbfs (my usb ports) arent working in xubuntu. lopagof Linux - Hardware 2 04-09-2007 12:32 PM
openGL screensavers arent working schirrjo Mandriva 8 08-06-2004 10:39 PM
.bashrc isn't working David the H. Linux - General 15 08-04-2004 02:51 AM
my modules arent working even after... c0rderr0y Linux - Newbie 2 02-22-2004 12:07 AM
Man Pages arent working MRK Linux - Software 2 07-03-2003 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration