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

by | Jul 9, 2019 | Howtos, Linux | 0 comments

 

 

 

 

/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!

 

Written By George Sruthin

Founder of techridez.com, A Tech Enthusiast, Linux lover.

Related Posts

Comments

0 Comments

0 Comments

Submit a Comment


Subscribe For Instant News, Updates, and Discounts

Pin It on Pinterest

Shares
Share This