The Setup If you are running Linux as a guest OS within Windows using VirtualBox or VMware. And if you have a Windows folder shared with Linux. And if those folders have some shell scripts which you edit in Windows but execute in Linux. Problem Then there is a very high probability that you might get this error while running those script files on linux that were created in Windows: $'clear\r': command not found I got this error for a simple hello world script: # My first script clear echo "Hello World!" Reason Windows represents End of Line (EOL) with two characters: CR + LF but Linux represents End of Line (EOL) with only LF ( details ) Solution So if you want to continue editing the source of these script file on Windows but run them on Linux, you will need to convert the EOL representations from Windows format to Linux format before you run the scripts on Linux. If you are using Notepad++ as your source editor, you can achieve this by s...