Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$su
Password:
bash: /root/.bashrc: line 9: unexpected EOF while looking for matching `''
bash: /root/.bashrc: line 15: syntax error: unexpected end of file
bash-3.1#
EDIT:
it's fixed now ^^
so where do I add the path?
Last edited by vegetassj2; 08-16-2006 at 01:07 PM.
Put back the original file. You did make a copy, did you
If you know what you changed, undo it. If not: Can you post the .bashrc file, it's probably a ' that's missing somewhere (as the error states).
PS:
- Always make a copy of the original.
- Always try these things as a normal user.
- In general: Only do things as root user if you cannot do it as a normal user.
it's fixed I just accidentaly removed a ' in my alias list
so where do I add the path dir?
Code:
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cls='clear'
alias rmf='rm -f'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
Last edited by vegetassj2; 08-16-2006 at 01:21 PM.
I do believe that FreeDoughnut gave you the wrong information.
Personal aliases and functions belong in .bashrc (as you correctly did).
Changes to the PATH environment variable on the other hand should go in .bash_profile. I have to admit that not all distro's do this correctly. Check to see if there is an entry that looks like this:
PATH=$PATH:/something
in your .bash_profile.
If it is, you need to change it to:
PATH=$PATH:/something:/opt
If the entry is missing altogether, add the following line to your .bash_profile:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.