(1) In order to set user prompt, add following 2 lines at the end of
/home/<user>/.bashrc file as follow (for bash):
Code:
prompt="linux1234$"
export prompt
For c shell or ksh, do change the syntax to
set prompt="linux1234$" and append the same in
.cshrc or
.kshrc file. Also if 1234 is command number, then use,
prompt="linux\!$"
(2) To set a greeting message, just add your message in /etc/issue or /etc/motd file.