Exit the Terminal Window

Asked by Marco Parillo

Under Applications > Accessories > Terminal, when I type exit at the command prompt, I get a message that There are stopped jobs.
Is it safe to simply click the x button to close the entire window?
I am running 10.10.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Marco Parillo
Solved:
Last query:
Last reply:
Revision history for this message
José Lou Chang (obake) said :
#1

It is best to let an operation in the terminal finish.
But, if you have a reason to stop it, then the best way to stop is by pressing CTRL + C [Control C] on your keyboad.

Whatever it is safe to close with the X button depends on the process or operation itself.

Just remember the Ctrl + C command ;-)

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

To exit from terminal is better to type:

exit

or to press the keyboard key

ctrl+d

So you will be sure all pending/running software bind with your terminal session are ended...

Revision history for this message
Marco Parillo (marco-parillo) said :
#3

both typing exit and hitting <Ctrl>d seem to work in an empty terminal session, but if I hit <Ctrl>z after a man command, now I get something similar to what I thought I had when I originally opened this question:

ubuntu@ubuntu:~$ man gksu

[1]+ Stopped man gksu
ubuntu@ubuntu:~$ exit
exit
There are stopped jobs.
ubuntu@ubuntu:~$

Revision history for this message
Marco Parillo (marco-parillo) said :
#4

If it type fg, then I can exit.

Revision history for this message
Marco Parillo (marco-parillo) said :
#5

But sometimes, I needed to hit q to properly exit the man page scroller.