Help - Search - Members - Calendar
Full Version: Sourcing Problem
Linuxhelp > Support > Technical Support
user12345
Hello,

I entered in my .bashrc

export PATH=/usr/local/arm/bin

and sourced it...now, it seems like I can't use any of the commands that I used to like vi and ls so now I can't even change my .bashrc again.

How can I fix this problem?

Thanks so much!
Robert83
Hi

CODE
cd /bin


vi /root/.bashrc

and change it back ... I really hope you did a backup smile.gif

in case you didn't here is mine (but this is CentOS 3.x)

CODE
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
       . /etc/bashrc
fi


You could always enter the PATH into /etc/profile ... though that is not user specific.

Sincerely
Robert B
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.