linux $'\r' when executing .sh script: command not found

Background
  $'\r' appears when executing the .sh script: Command not found, the
reason
  is because the command is directly copied from windows.
Solution
  Run: yum install dos2unix


  dos2unix **.sh to convert
  can be executed again

Reference: https://blog.csdn.net/qq_39727001/article/details/102560102

Guess you like

Origin blog.csdn.net/csl12919/article/details/106849972