Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-12-2009, 04:46 PM   #1
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
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
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
LQ Newbie
Registered: Sep 2009
Location: Copenhagen
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0

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;
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
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 02:08 AM.

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