Results 1 to 3 of 3
coded this line in my .profile
alias cddb2='cd /opt/ibm/db2/V9.7/bin'
after I save ,exit the session and come back and try it outs its saying cddb2 not found.
Help please...
- 04-26-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 1
Alias not working for me
coded this line in my .profile
alias cddb2='cd /opt/ibm/db2/V9.7/bin'
after I save ,exit the session and come back and try it outs its saying cddb2 not found.
Help please
- 04-27-2011 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 452
welcome to the forum
try "sh .profile"the sun is new every day (heraclitus)
- 04-28-2011 #3
There are two files that are automatically read by Bash when you start a shell: .bash_profile and .bashrc.
.bash_profile is only read for the initial login shell, and .bashrc is read for every shell that you start. .bash_profile often only contains a single line:
Which effectively makes your .bash_profile and your .bashrc the same file.Code:source ~/.bashrc
So add the line to your ~/.bashrc file and it should work.DISTRO=Arch
Registered Linux User #388732


Reply With Quote