Are the commands in .bashrc executed each time one logins?
by stf92 from LinuxQuestions.org on (#56WGE)
Slackware64 current (july 2020)
Kernel 5.4.50
Hi: Code:bill@darkstar:/debian/cine/The Prince (2014) [1080p]$ cat ~/.bashrc
[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh
sudo /usr/sbin/netdate time.nist.gov
bill@darkstar:/debian/cine/The Prince (2014) [1080p]$When I login in a terminal I notice netdate hasn't been executed and I have to manually run .bashrc:Code:bill@darkstar:~$ . .bashrc
time.nist.gov -0.618 Thu Aug 13 17:24:09.000
bill@darkstar:~$So the following question: Aren't the commands in .bashrc executed each time one logins?


Kernel 5.4.50
Hi: Code:bill@darkstar:/debian/cine/The Prince (2014) [1080p]$ cat ~/.bashrc
[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh
sudo /usr/sbin/netdate time.nist.gov
bill@darkstar:/debian/cine/The Prince (2014) [1080p]$When I login in a terminal I notice netdate hasn't been executed and I have to manually run .bashrc:Code:bill@darkstar:~$ . .bashrc
time.nist.gov -0.618 Thu Aug 13 17:24:09.000
bill@darkstar:~$So the following question: Aren't the commands in .bashrc executed each time one logins?