Share your knowledge at the LQ Wiki.
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-2004, 02:30 AM   #1
LQ Newbie
Registered: Sep 2004
Posts: 8

Rep: Reputation: 0
I messed up my /etc/bashrc


As the title says, I messed up my /etc/bashrc file. I believe that I inadvertently removed the PATH line of the bashrc file while I was tweaking it as root.

Right now I can't log in as a normal user and when I enter as root in failsafe mode I only have a couple of commands available. For instante, I can't use 'ls' and 'vi' .

Is there something I can do?

thanks in advance
Old 09-12-2004, 02:35 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Hi, and welcome to LQ!

It's a bit distro-depends what your bashrc looked
like, so if you can share that information with us ...

Old 09-12-2004, 02:37 AM   #3
LQ Newbie
Registered: Sep 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I use Fedora Core 2.
Old 09-12-2004, 06:54 AM   #4
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
Are you able to boot off of a live cd and alter the file back to its original state?
Old 09-12-2004, 12:31 PM   #5
LQ Newbie
Registered: Sep 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Now i have my problem solved, all I had to do was to put something like:

export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin

and then I worked my way throught it


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
.bashrc help shanenin Linux - Software 4 02-14-2004 07:17 PM
.bashrc f0rmula Linux - Software 24 12-28-2003 10:43 PM
Where is .bashrc? Luantum Slackware 3 12-01-2003 01:29 AM
.bashrc roofy Slackware 7 05-06-2003 02:32 PM
bashrc nobu Slackware 6 03-21-2003 11:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:52 PM.

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