EOF signifies the end of file, unix based OS deals all devices as a file so STDIN/STDOUT is also a file and EOF applies over there also.
EOF can be represented as CTRL+D and CTRL+Z you can also do the same by closing the file i.e. fclose in C if you are reading from file.