Technical Fixes1 min read
Linux - Bad interpreter error
Linux - Bad interpreter error
Linux - Bad interpreter error#
<u>Error:</u>
zsh: ./41154.sh: bad interpreter: /bin/sh**^M**: no such file or directory

The ^M at the end of /bin/bash^M indicates that your script (41154.sh) has Windows-style line endings (CRLF) instead of Unix-style (LF). This usually happens when a script is created or edited on Windows and then transferred to a Linux system.
<u>Fix:</u>
Convert the File to Unix Format: Run the following command to remove the Windows carriage return (\r):
bash
sed -i 's/\r$//' 41154.shor use
dos2unix if available and convert the file:
bash
dos2unix 41154.shRelated articles
Technical Fixes1 min
VMWare - Kali - Out of space
VMWare - Kali - Out of space
- linux
- vmware
- tryhackme
- hackthebox
- immersivelabs
Technical Fixes1 min
Docker error - Invalid interpolation format
Docker error - Invalid interpolation format
- linux
- docker
- tryhackme
- hackthebox
- immersivelabs
Technical Fixes1 min
Error - Exception: a bytes-like object is required
Error - Exception: a bytes-like object is required
- linux
- python
- tryhackme
- hackthebox
- immersivelabs