Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion .bash_profile modification
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Icarus Sparry  
View profile  
 More options Sep 9 2012, 2:10 pm
Newsgroups: comp.unix.shell
From: Icarus Sparry <i.sparry...@gmail.com>
Date: Sun, 09 Sep 2012 18:10:29 GMT
Local: Sun, Sep 9 2012 2:10 pm
Subject: Re: .bash_profile modification

On Sat, 08 Sep 2012 15:51:09 -0700, 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

> # This only runs on user login echo ""
> echo -n "Welcome to Linux, "; whoami echo ""
> echo -n "Today is "; date "+%m-%d-%Y %H:%M:%S"
> echo ""
> cal

> # This loads in the configuration in .bashrc # Put all configuration
> there!

> # Get the aliases and functions if [ -f ~/.bashrc ]; then
>         . ~/.bashrc
> fi

> # User specific environment and startup programs

> PATH=$PATH:$HOME/.local/bin:$HOME/bin

> export PATH

> However every time I start the terminal It does not show me the messages
> I configured on it.
> Is it anything wrong on it?. I changed the attributes to chmod 777
> .bash_profile

> Thanks

The most likely reason is that your "terminal" is not announcing that it
is a "login" window.

If you read the manual for bash, you will see it reads different files
depending on how it is invoked.

Try running
        xterm -ls
or
        gnome-terminal -e bash --login

If you are using gnome-terminal, then you can change the preferences
associated with a profile to say it should be considered a login window.
           xterm -ls


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.