On Sat, 8 Sep 2012 15:51:09 -0700 (PDT), ritchie31 wrote:
> Hello Forum.
> I modified my .bash_profile by adding a welcome message and showing me the data time as I saw in an example.
>
>
> # .bash_profile
>
>
If it were me I would at least move your echo, cal code after the
export PATH statement.
>
> However every time I start the terminal It does not show me the messages I configured on it.
Hmmm, guessing you have logged in and your desktop manager is running,
and you clicked up a terminal and wonder why it did not work.
Yup, situation normal.
> Is it anything wrong on it?.
With the lack of information provided and my above assumption, it is
working as designed.
> I changed the attributes to chmod 777 .bash_profile
Why let the others and group users modify the file? :(
Put it back like your found it:
chmod 644 .bash_profile
When you click up a terminal, .bash_profile does not run, .bashrc will
run.
Anytime you want to debug something like the above, put a
set -x
above where you want to start seeing something happening.
To turn it back off, do a
set -
Now if the system runlevel is not gui login, then I would have
expected it to run your code just after entering your password.