2019年11月20日 星期三

When execute sh script under linux, /bin/sh^M:bad interpreter:No such file or directory

When execute sh script under linux, /bin/sh^M:bad interpreter:No such file or directory

Root Cause:
The file has been modify under windows.
#vim file name
:set ff
Check if fileformat=dos

Fixed:
:set ff=unix
:wq

Run script again.

沒有留言:

張貼留言

Simple dd command to test HDD read/write performance under linux

Simple dd command to test HDD read/write performance under linux Read #dd oflag=direct if=/dev/zero of=/mnt/test bs=512k count=200...