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.
I have two versions of the hidden file .bashrc: one is stored in my home directory, one is stored in a subdirectory called ACE_50021. When I open a terminal window, I tried to enter the command "source .bashrc" which yields an error statement:
"bash: /home/username/ACE_410/Exer_env.sh: No such file or directory"
Why is this happening? I don't have the ACE_410 directory referenced, nor do I see it in my directory paths. Please advise ASAP as I am stuck. Thanks.
Is /home/username/ACE_50021 in your path? Per tha man page:
If filename does not contain a slash, file names in PATH are used to find the directory contain-
ing filename. The file searched for in PATH need not be executable. When bash is not in posix mode, the current direc-
tory is searched if no file is found in PATH.
Or you're in the /home/username/ACE_50021 dir, it's NOT in your path, and there's no other .bashrc in your path, and you're not running in posix mode. I assume /home/username is NOT in your path.
This shows you have defined /home/username/ACE_410/Exer_env.sh path in .bashrc file, which does not exist.
Can you paste contents of both .bashrc files ?
Unfortunately, I have a VM can in which I connect to a Linux session via NoMachine, but the connection is failing, so I cannot access any of my .bashrc files. My sys admin is reconfiguring the server to which I was connected, so I'll try again once he is finished. Thanks.
#PLEASE SET THE EXERCISE VARIABLE
export EXERCISE=t50021
#source ${ATIHOME}/EXER_env.sh
if [ -f ${IMCN_HOME}/env/IMCN_env ]; then
source ${IMCN_HOME}/env/IMCN_env
fi
export PS1='[\h:\w] '
#
alias dirs='ls -al | grep \/'
alias h='history'
alias mv='mv -i'
alias rm='rm -i'
alias cp='cp -i'
alias mvf='/usr/bin/mv -f'
alias rmf='/bin/rm -f'
alias cpf='/usr/bin/cp'
alias dir='ls -al'
alias copy='cp'
alias type='more'
alias ls='ls -CF'
alias md='mkdir'
alias rd='rmdir'
alias help='man'
alias l='ls -al'
alias rgrep='find . -type f -print | xargs grep'
alias oracle_count='ps -ef | grep oracleATI | wc -l'
When I do the 'source .bashrc' command, I receive the following:
ATIHOME is
/home/acecsi/ACE_CSI_4_1_0
In other words, the wrong directory is referenced. Please advise.
Never mind. I had a software developer point me to the ATI_env.sh script file that is referenced in the .bashrc. This file directs the environment variables to the 4_1_0 path rather than the 5_0_0_2_1 path as expected.
Thanks for your help everyone, and please pass this info to anyone else who happens to experience this type of issue with .bashrc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.