I opened cat
without any argument in the terminal:
cat
And then I typed some text and pressed Ctrl+D
, and what I typed was echoed back.
I re-typed some text and pressed Enter
, and what I typed was also echoed back.
Is there a difference between Ctrl+D
and Enter
(I am talking about when there is text in the terminal when pressing one of these keys, because when there is no text, Ctrl+D
sends EOF
, while Enter
does not).