Bash - 404:: command not found

The error

Just a reminder that after the download of a bash script from a web server, you may get the following error: line 1: 404:: command not found

The reason

The reason is that the script was not found when you download it. For instance:

wget https://hostname/

And the web server has returned the following text file

404: Not Found

Then wen you try to execute it:


You get the error because 404 which is the first word, is seen as a command and is not found.

Powered by ComboStrap