Adding to .bashrc

  1. Add the command you want. It will be executed when the user runs bash. echo "touch /tmp/bashtest.txt" >> ~/.bashrc