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

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

        /bin/bash^M: bad interpreter: No such file or directory    Fix         To fix this…

        /bin/bash^M: bad interpreter: No such file or directory    Fix         To fix this…

 

 

 

 

/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

👋 Hi, I'm George Sruthin, founder of TechRidez. 💻 I help IT professionals solve real-world infrastructure challenges through practical guides on 🐧 Linux, ☁️ Cloud, 🖥️ Virtualization, 💾 Enterprise Storage, 🔐 Cybersecurity, 🌐 Networking, and ☁️ Backup Solutions.

Related Posts

Comments

0 Comments

0 Comments

Submit a Comment


Subscribe For Instant News, Updates, and Discounts

Pin It on Pinterest

Shares
Share This