How to fix “stdin: is not a tty” warning

To get rid of this innoing warning, login remote server and update the following file


by adding the line to the top of file

[ -z "$PS1" ] && return

Run to check the file bashrc

head -n3 /etc/bashrc


# /etc/bashrc

[ -z "$PS1" ] && return

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *