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

 

 

 

 

To fix this you need to install dos2unix in your linux, i am using ubuntu so, to install this i am using following command in the terminal

 

sudo apt-get install dos2unix

Since my script name is script.sh i need to type following command to convert

 

sudo dos2unix script.sh

After that you can try run script file it will work!

 

Pin It on Pinterest

Shares
Share This