{"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/y/yokoyantech/20180703/20180703175013.png","version":"1.0","published":"2018-07-03 18:30:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yokoyan.net%2Fentry%2F2018%2F07%2F03%2F183000\" title=\"\u3010Bash\u3011\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u6642\u306b /bin/bash^M: bad interpreter: No such file or directory \u304c\u51fa\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5 - \u7d19\u4e00\u91cd\u306e\u7a4d\u307f\u91cd\u306d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"yokoyantech","type":"rich","width":"100%","url":"https://www.yokoyan.net/entry/2018/07/03/183000","title":"\u3010Bash\u3011\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u6642\u306b /bin/bash^M: bad interpreter: No such file or directory \u304c\u51fa\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5","categories":["Ubuntu","shell"],"height":"190","description":"\u306f\u3058\u3081\u306b \u5730\u5473\u306b\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 \u3084\u308a\u305f\u3044\u3053\u3068 \u81ea\u4f5c\u3057\u305f\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u305f\u3044 \u74b0\u5883 Ubuntu16.04 \u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u6642\u306b\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b -su: ./create_hoge.sh: /bin/bash^M: bad interpreter: No such file or directory \u5bfe\u51e6\u6cd5 \u6539\u884c\u30b3\u30fc\u30c9\u3092LF\u306b\u5909\u66f4\u3059\u308b \u539f\u56e0 \u6539\u884c\u30b3\u30fc\u30c9\u304cCRLF\u306b\u306a\u3063\u3066\u3044\u308b cat -e\u3067\u78ba\u8a8d\u3067\u304d\u308b ^M$\u3068\u306a\u3063\u3066\u3044\u308b\u3068\u30c0\u30e1 cat -e create_hoge.sh #!/bin/bash^M$ sudo touch /var/tmp/nginx/hog\u2026","provider_url":"https://hatena.blog","blog_url":"https://www.yokoyan.net/","author_url":"https://blog.hatena.ne.jp/yokoyantech/","provider_name":"Hatena Blog","blog_title":"\u7d19\u4e00\u91cd\u306e\u7a4d\u307f\u91cd\u306d"}