end of file

The point where input runs out; also, by convention, the word EOF used to end a here document.

In more detail

A program reading input stops when it reaches the end of file, which you can signal at a terminal with Control D. Bash reports syntax error: unexpected end of file when a script ends while something such as an if or a quote is still open.

Related terms

Taught in

References

Certification courses