sometimes a cigar is just a cigar
Header image

/bin/bash^M: bad interpreter: no such file or directory

Posted by ALonon in Linux

/bin/bash^M: bad interpreter: no such file or directory

If you are using both windows and linux, because of they are using different charecter for tab, new line etc … , you can get this error.

simply use

dos2unix filename

if not installed

sudo apt-get install dos2unix

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>