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

 

The Inspiration Behind This Article ⭐

Special thanks to Jake on LinkedIn for the inspiration behind this blog post. Your thoughts on the "Ivory Tower" concept encouraged me to expand on the idea and explore how it impacts leadership, IT, and organizational decision-making.

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