Город МОСКОВСКИЙ
00:02:46

Resolve Bash Script Bad Interpreter No such File Or Directory Error

Аватар
Геймерский Путеводитель
Просмотры:
26
Дата загрузки:
25.10.2023 19:14
Длительность:
00:02:46
Категория:
Технологии и интернет

Описание

Learn how to resolve a Bash script bad interpreter: No such file or directory.
The error generally appears as such.

bash: ./xyz.sh: /bin/bash^M: bad interpreter: No such file or directory

To resolve this run the following command.

sed -i -e 's/\r$//' YOUR_SCRIPT_NAME.sh

SED command in UNIX stands for stream editor and it can perform lots of functions on file like searching, find and replace, insertion or deletion.

Works solution work on php as well.

#docker, #bash, #linux

Рекомендуемые видео