How to exit from cat command from terminal program.

Asked by Richard Hamitt on 2008-07-09


I use the command cat>binary.txt. Then I type in what I want in the file like this:


But how do I exit after typing the information? I tried several keyboard keys but they are just written on the screen ( I think ascii ). Neither typing exit nor quit seem to respond. I just exit the terminal program but that is cumbersome if there are more commands to do.

Question information

English Edit question
Ubuntu gnome-terminal Edit question
No assignee Edit question
Solved by:
Christophe Painchaud
Last query:
Last reply:

This question was reopened

Try oressing Ctrl+C

Try pressing Ctrl+C

Thanks Sayak Banerjee, that solved my question.

Glad I could help!

That helped with exiting from the cat command, but the information I typed is not used in the project. If I exit from the terminal program right after entering the information, the information is used. I am not sure if it is problem with the project or with the terminal program itself.

when someone solves your question, use the menu to select his answer as the right answer. It will mark your question as solved

Thank you but it did not really solve the problem. I did find that I must use Ctrl+D to save and exit what I type in. Ctrl+C just exits.