-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

So I was sshing my server and from it sshying another server and then drag and drop file (while ssh inside ssh). And now I have "-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory" on CentOS - OS wich was last in this inception, and I don't know where did the file go in Debian - OS i was sshing from :wink:

How to fix this "-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory" and where is this file so I can delete it. Thank you in advance.

The root cause is .bashrc or .bash_profile was loaded exclusively, please go to Troubleshooting section of this post for solution:

What about zsh? Do not have .bashrc nor .bash_profile at all yet still the dreaded warning in bash keeps polluting CoreShell session(s)

It's not a tough problem, could you please upload ~/.zprofile and .zshrc, so I can help you fix this issue.

Kindly Regards,

Yang