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

Received: by 10.180.73.173 with SMTP id m13mr829270wiv.4.1347645116968;
        Fri, 14 Sep 2012 10:51:56 -0700 (PDT)
Path: ed8ni64951265wib.0!nntp.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fed12.iad.POSTED!not-for-mail
From: Icarus Sparry <i.sparry...@gmail.com>
Subject: Re: .bash_profile modification
Newsgroups: comp.unix.shell
References: <2835a51e-d2a6-4140-bad1-1c0031e27de7@googlegroups.com>
Supersedes: <pY43s.24613$0K4.6...@fed12.iad>
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
	git://git.gnome.org/pan2)
MIME-Version: 1.0
Lines: 53
Message-ID: <JZ83s.24937$0K4.13813@fed12.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sun, 09 Sep 2012 22:44:57 UTC
Organization: UseNetServer - www.usenetserver.com
Date: Sun, 09 Sep 2012 22:44:57 GMT
X-Received-Bytes: 2060
Bytes: 2330
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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.