Reputation: 758
I am on a RedHat csh.
I just modified ~/.cshrc
with a wrong path and resulting in an syntax-error
.
my shell just not recognize ls
or gedit
. So, when I again try to modify, it is not again opening with gedit ~/.cshrc
.
When I boot the system it is not starting the profile.
I Have the root access and root profile is fine. Can I edit it from root.
Please help me to remove last two lines i have added to /.cshrc
, using root-profile so that it works normal as previous.
thanks.
Upvotes: 0
Views: 1829
Reputation: 1572
I'm guessing your PATH
isn't getting set properly due to the syntax-error
in your .cshrc
(assumption since you mention ls
isn't working). Try the following from your shell:
echo $PATH
echo
is a built-in and should always work. If it returns nothing, is empty, or doesn't include a list of paths similar to /bin
, /usr/bin
, etc ... then your path is indeed incorrect. Use the full path to gedit
on the command line like:
/usr/bin/gedit ~/.cshrc
Upvotes: 3