I'm trying to figure out which "script" (really it's probably an "*rc" file) is running a particular command when I reboot my ubuntu machine. I've tried grepping for what is being displayed when I log into the machine after a reboot but I haven't been able to find it.
I know that, for example, the .bash_profile is "sourced" when I log in but what others are run This will help me track down the script/file that's running an old set of commands that I need to update.
here's what happens when i log in:
bos-mp2o6:~ user$ ssh -A X.X.X.X user@X.X.X.X's password: Linux bos-lpwy9 2.6.32-54-generic #116-Ubuntu SMP Tue Nov 12 19:23:22 UTC 2013 x86_64 GNU/Linux Ubuntu 10.04.4 LTS Welcome to Ubuntu! * Documentation: https://help.ubuntu.com/ New release 'precise' available. Run 'do-release-upgrade' to upgrade to it. Last login: Tue Dec 31 10:53:25 2013 from 172.19.43.138 Agent pid 2117 /home/user/.ssh/internal/2013-07-29: No such file or directory /home/user/.ssh/deployed/2013-07-29: No such file or directory Identity added: /home/user/.ssh/external/2013-07-29 (/home/user/.ssh/external/2013-07-29)
if you notice the "Identity added" piece, that's the bit I'm looking for. So I've used the following command (with no luck):
[user@Linux_Desktop:~]$grep_bash 2013-07-29 [user@Linux_Desktop:~]$