1

I want a script that writes to the terminal a welcome message (something like echo "welcome, usr. Linux version..." etc). I have the script written, it works (i.e. it has execute privileges) so I know that's not the issue. I have tried adding it to the /etc/profile.d, /etc/update_motd, and adding the script to the startup programs, as well as using cron, with no luck.

Any suggestions?

  • Changing profile only affects the basically sh/bash/ksh/zsh...Not csh/tcsh type of shells. – mdpc Jun 13 '16 at 20:45
  • Put it into .bashrc , maybe as a function, and call that function at the end of the file – Sergiy Kolodyazhnyy Jun 13 '16 at 20:48
  • For ssh sessions as well? Also are you sure the output of the message already works? /etc/profile might be also a location you could use but that e.g. /etc/profile.d didn't work for you is strange. – phk Jun 13 '16 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.