I'm reading The Unix Programming Environment.There is an exercise question to print how much CPU time you have consumed when you log off by editing .profile.I tried with thistrap 'times' 0 1 2 15but it is not working. 
How to execute script on logging out?
bash;shell;ubuntu