- Saturday, 03 September 2016
If you are getting this error it's probably because you have one or more echo statments on your .bashrc or .bash_profile files (like we did here - customizing your bash shell with a welcome message or your nic's ips).
Well, i found this script (here), and it allows to verify if a shell is a login shell or not and if it is (i.e. vsftp) all we need to do is not to echo anything. It's not perfect but it's the better solution I could find (let me know if you have a better one).
Here's the end result:
- Friday, 02 September 2016
If you want you can print a welcome message that will show every time you login or launch a new terminal.
To do that you just have to edit your .bashrc file or your .bash_profile if you just want to display the message in login shells (and not in no-login shells) and add the line :
echo " ********* Welcome $USER ********** "
like you see here: