LinuxQuestions.org
Review your favorite Linux distribution.
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, 05: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 05:23 AM.
 
Old 09-12-2009, 06:27 PM   #2
weibullguy
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
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, 06: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 05:23 AM.
 
Old 09-19-2009, 08:00 AM   #4
pixellany
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.
 
  


Reply


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 01:32 PM
openGL screensavers arent working schirrjo Mandriva 8 08-06-2004 11:39 PM
.bashrc isn't working David the H. Linux - General 15 08-04-2004 03:51 AM
my modules arent working even after... c0rderr0y Linux - Newbie 2 02-22-2004 01:07 AM
Man Pages arent working MRK Linux - Software 2 07-04-2003 12:26 AM


All times are GMT -5. The time now is 04:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration