Tips / bin / sh ^ M when executing a shell script: bad interpreter: No such file or directory

When prompted to execute a script interpreter in question, the following error message:

 

 This is usually prompted by the script in Notepad windows system of this writing, notepad revised text, the default will be in front of the text plus some invisible mark, resulting in shell scripts shell interpreter can not be identified, will burst out of this error.

This error can only replace the shell script or rewrite, does not recommend using Notepad to write the script.

Here, I directly changed after the original script (backup) replaced back to normal.

Guess you like

Origin www.cnblogs.com/mython/p/11799578.html