/ Bin / sh ^ M: bad interpreter: No such file or directory to solve the problem

My system is windows, .sh file format for dos, uploaded to an error on linux / bin / sh ^ M: bad interpreter: No such file or directory, linux can be performed only in the format of unix script format, change the format to unix ;

1, vi open the file

2, using the set ff command to view format

The current format of dos 

3, using a set ff = unix to change the format, see

Scripts can be run.

 

Guess you like

Origin www.cnblogs.com/caofanqi/p/10959012.html