Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save abdfnx/a1941d4f8a2b2d615bb7fa6e727538da to your computer and use it in GitHub Desktop.

Select an option

Save abdfnx/a1941d4f8a2b2d615bb7fa6e727538da to your computer and use it in GitHub Desktop.
How do I fix “$'\r': command not found” errors running Bash scripts in WSL?
  1. Inside WSL:
sudo apt-get install dos2unix
  1. Then,
dos2unix FILE_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment