Hi, i am learning to write simple scripts, just to know a little more
i am learning from this site http://gd.tuwien.ac.at/linuxcommand.org/wss0020.html
i have a problem with writing an alias in .bash_profile at home directory
I write the alias like the site said: "at the end of the file add alias l='ls -l' "
And then i log out and nothing happened, i modify the alias in the file just in case something was wrong, and nothing happened, then i even reboot my PC, and nothing
So what happened???
I checked with the alias command at the command prompt and the alias i added wasn´t on the list.
Then I edit .bashrc the same way, i logged out, logged in again, and the alias worked fine,
My question is: Why editing the .bash_profile didn´t work??
Info: I use vim to edit files, and here is the output for .bash_profile at home directory:
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
# User specific environment and startup programs
alias today='date +"%A, %B %-d, %Y"'
Oh and one more thing, why there is another .bash_profile in /etc/skel ??
Does it add the aliases for all the users??