Bash script execution error : /bin/bash^M: bad interpreter: no such file or directory

If you are getting error message while running a bash script like mentioned below:

Then follow below steps to rectify it.

or

Install a packege – dos2unix

Then issue a comand

The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply