If you want to add a banner on the login of mtcl then do the following.
This is an updated how-to as editing the .bashrc file introduces an issue on using the mastercopy command which stops it from working!
>vi .local_profile or on later releases use nano .local_profile (unless you really like using vi) if the file doesn’t exist this will create it.
(if you want it to be displayed for all logins then use /etc/issue (for v24) or /etc/issue.net (for telnet/ssh))
Enter the lines that you want to display using echo -e “(text that you want)” at the end of the file
For formatting you can use the following, so to add 2 new lines and a tab it would be echo -e “\n\n\t”
Example:
echo -e “\n\n”
echo -e “\t ___________________________________________“
echo -e “\t | This login is restricted to “Company X employees |”
echo -e “\t | Don’t use it in any other circumstances! |”
echo -e “\ | By order of Sys Admin |”
echo -e “\t ___________________________________________\n\n”
| Options | Definition |
| -n | Do not print the trailing newline |
| -E | Disable interpretation of back-slash escaped characters |
| -e | Enable interpretation of backslash escapes |
| \a | Alert |
| \b | Backspace |
| \c | Suppress trailing newline |
| \e | Escape |
| \f | Form feed |
| \\ | backslash |
| \n | New line |
| \r | Carriage return |
| \t | Horizontal tab |
| \v | Vertical tab |