Windows CR and LF  Linux: LF only   Files saved in Windows and they have errors when exectured in the Linux.   /bin/bash^M: bad interpreter: そのようなファイルやディレクトリはありません /bin/bash^M: bad interpreter: No such file or directory    It is because files are stored with \r\n and it needs to be corrected with \n.  cat -e displays LF as $ and CR as ^M .  cat -e filename   http://totech.hateblo.jp/entry/2014/03/19/174129  http://d.hatena.ne.jp/JiaLu/20090911/1252627589