After using man, how to return to the shell prompt?
![](https://seccdn.libravatar.org/avatar/7aa23c93c08150267e6f0014fac9285a.jpg?s=120&d=mm&r=g)
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt? I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window. Thanks in advance... -- Shriramana Sharma http://samvit.org
![](https://seccdn.libravatar.org/avatar/f7a1aa12ddf1dca9e24d3931902d0be2.jpg?s=120&d=mm&r=g)
Shriramana Sharma wrote:
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt?
I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window.
Thanks in advance...
q for quit. :-) C.
![](https://seccdn.libravatar.org/avatar/23bea3cac63585e10858de10f2c6b478.jpg?s=120&d=mm&r=g)
On 8/11/05, Clayton
Shriramana Sharma wrote:
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt?
I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window.
Thanks in advance...
q for quit. :-)
C.
I am doing a no-no by typing CTRL-Z or CTRL-C to close man? Dotan Cohen http://lyricslist.com/lyrics/artist_albums/430/rolling_stones.php Rolling Stones Song Lyrics
![](https://seccdn.libravatar.org/avatar/f7a1aa12ddf1dca9e24d3931902d0be2.jpg?s=120&d=mm&r=g)
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt?
I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window.
Thanks in advance... q for quit. :-)
I am doing a no-no by typing CTRL-Z or CTRL-C to close man?
Not really. 'q' is a clean exit... Ctrl+z isn't. Either works. C.
![](https://seccdn.libravatar.org/avatar/247f3737bfdd07c80a5411399e9a504c.jpg?s=120&d=mm&r=g)
Clayton wrote:
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt?
I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window.
Thanks in advance...
q for quit. :-)
I am doing a no-no by typing CTRL-Z or CTRL-C to close man?
Not really. 'q' is a clean exit... Ctrl+z isn't. Either works.
CTRL-Z isn't an exit at all! The process is still there, just suspended. CTRL-C does exit the process (any process). q is the way to ask this particular process nicely. But there's no effective difference between q and CTRL-C in this case, AFAIK. Cheers, Dave
![](https://seccdn.libravatar.org/avatar/b12cfb65ca4faebc3e3aac17838e8f8d.jpg?s=120&d=mm&r=g)
Dave, Clayton, Newbies, On Thursday 11 August 2005 05:58, Dave Howorth wrote:
Clayton wrote:
...
I am doing a no-no by typing CTRL-Z or CTRL-C to close man?
Not really. 'q' is a clean exit... Ctrl+z isn't. Either works.
CTRL-Z isn't an exit at all! The process is still there, just suspended. CTRL-C does exit the process (any process).
The part about what CTRL-Z is doing is correct. Processes may chose to ignore or catch the signal (SIGINT) typically (but not always) produced when the user types CTRL-C in a text- / terminal-mode program such as those run in Konsole or one of the *term series of terminal emulators. CTRL-C is not usually considered a "normal" way to terminate a program. Instead, it is abortive and may lead to the program to fail to clean up and shut down properly (though that would be considered rather poor Unix / Linux programming form).
q is the way to ask this particular process nicely. But there's no effective difference between q and CTRL-C in this case, AFAIK.
In this case. But is not a good habit to develop to use CTRL-C (SIGINT) to routinely shut down an application.
Cheers, Dave
Randall Schulz
![](https://seccdn.libravatar.org/avatar/247f3737bfdd07c80a5411399e9a504c.jpg?s=120&d=mm&r=g)
Randall R Schulz wrote:
CTRL-C is not usually considered a "normal" way to terminate a program.
Instead, it is abortive and may lead to the program to fail to clean up and shut down properly (though that would be considered rather poor Unix / Linux programming form).
A program that fails to clean up and shut down properly (or take some other appropriate action according to its specification) is buggy, pure and simple.
q is the way to ask this particular process nicely. But there's no effective difference between q and CTRL-C in this case, AFAIK.
In this case. But is not a good habit to develop to use CTRL-C (SIGINT) to routinely shut down an application.
Why is it not a good habit? What problems does it cause? Doing it routinely is a good way of making sure that programs are free of such bugs. Just as typing %8888f into text fields is always worth a try :) Cheers, Dave
![](https://seccdn.libravatar.org/avatar/b949cc15ad484b6840079047db75fe82.jpg?s=120&d=mm&r=g)
On Thursday, August 11, 2005 @ 6:08 AM, Dave Howorth wrote:
Randall R Schulz wrote:
CTRL-C is not usually considered a "normal" way to terminate a program.
This is a failure of herd thinking, IMHO.
Instead, it is abortive and may lead to the program to fail to clean up and shut down properly (though that would be considered rather poor Unix / Linux programming form).
A program that fails to clean up and shut down properly (or take some other appropriate action according to its specification) is buggy, pure and simple.
q is the way to ask this particular process nicely. But there's no effective difference between q and CTRL-C in this case, AFAIK.
In this case. But is not a good habit to develop to use CTRL-C (SIGINT) to routinely shut down an application.
Why is it not a good habit? What problems does it cause?
Doing it routinely is a good way of making sure that programs are free of such bugs. Just as typing %8888f into text fields is always worth a try :)
Cheers, Dave
I believe the original question was how to exit man. That would be with Q. I don't think he was wanting to know how to suspend man, just how to exit it cleanly. Greg Wallace
![](https://seccdn.libravatar.org/avatar/2a3d30001c8a1c759a06ec93b9762ba9.jpg?s=120&d=mm&r=g)
Thu, 11 Aug 2005, by dhoworth@mrc-lmb.cam.ac.uk:
Clayton wrote:
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt?
I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window.
Thanks in advance...
q for quit. :-)
I am doing a no-no by typing CTRL-Z or CTRL-C to close man?
Not really. 'q' is a clean exit... Ctrl+z isn't. Either works.
CTRL-Z isn't an exit at all! The process is still there, just suspended.
Not suspended, sent to the background. It's still running, it just doesn't listen to stdin anymore, and doesn't send anything to stdout. See 'help jobs bg fg' and signal(7)
CTRL-C does exit the process (any process).
Not really, SIGINT can be ignored by a process, or trapped by the shell. . Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 9.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.8 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply.
![](https://seccdn.libravatar.org/avatar/2a3d30001c8a1c759a06ec93b9762ba9.jpg?s=120&d=mm&r=g)
Thu, 11 Aug 2005, by twe-suse.e@ferrets4me.xs4all.nl:
Thu, 11 Aug 2005, by dhoworth@mrc-lmb.cam.ac.uk:
CTRL-Z isn't an exit at all! The process is still there, just suspended.
Not suspended, sent to the background. It's still running, it just
Damn. No, it isn't. It really is a 'stop' signal. Sorry. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 9.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.8 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply.
![](https://seccdn.libravatar.org/avatar/41ed85ec60b719fa1654d12375dd9bd6.jpg?s=120&d=mm&r=g)
On Thu, 2005-08-11 at 20:58 +0200, Theo v. Werkhoven wrote:
Thu, 11 Aug 2005, by twe-suse.e@ferrets4me.xs4all.nl:
Thu, 11 Aug 2005, by dhoworth@mrc-lmb.cam.ac.uk:
CTRL-Z isn't an exit at all! The process is still there, just suspended.
Not suspended, sent to the background. It's still running, it just
Damn. No, it isn't. It really is a 'stop' signal. Sorry.
Taken from man bash: If the operating system on which bash is running supports job control, bash contains facilities to use it. Typing the suspend character (typically ^Z, Control-Z) while a process is running causes that process to be stopped and returns control to bash. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
![](https://seccdn.libravatar.org/avatar/b949cc15ad484b6840079047db75fe82.jpg?s=120&d=mm&r=g)
On Thursday, August 11, 2005 @ 4:59 AM, Dave Howorth wrote:
Clayton wrote:
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt?
I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window.
Thanks in advance...
q for quit. :-)
I am doing a no-no by typing CTRL-Z or CTRL-C to close man?
Not really. 'q' is a clean exit... Ctrl+z isn't. Either works.
CTRL-Z isn't an exit at all! The process is still there, just suspended. CTRL-C does exit the process (any process).
q is the way to ask this particular process nicely. But there's no effective difference between q and CTRL-C in this case, AFAIK.
Cheers, Dave
CTRL-C doesn't work on my machine. I always use Q. Greg Wallace
![](https://seccdn.libravatar.org/avatar/ba86f283d614d2cd9b6116140eaddded.jpg?s=120&d=mm&r=g)
Dotan Cohen wrote:
On 8/11/05, Clayton
wrote: Shriramana Sharma wrote:
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt?
I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window.
Thanks in advance... q for quit. :-)
C.
I am doing a no-no by typing CTRL-Z or CTRL-C to close man?
<CTL> Z doesn't close the app. It suspends it. Watch what happens when you do that. You'll likely see something like "[1]+ Stopped man mount" And if you run ps aux|grep mount, you'll see it's still running.
![](https://seccdn.libravatar.org/avatar/f7a1aa12ddf1dca9e24d3931902d0be2.jpg?s=120&d=mm&r=g)
<CTL> Z doesn't close the app. It suspends it. Watch what happens when you do that. You'll likely see something like "[1]+ Stopped man mount"
And if you run ps aux|grep mount, you'll see it's still running.
Every day I learn something from this list. I stand corrected in my previous post :-) Thanks for pointing out the important difference between Crtl+c and Ctrl+z. C.
![](https://seccdn.libravatar.org/avatar/ba86f283d614d2cd9b6116140eaddded.jpg?s=120&d=mm&r=g)
Shriramana Sharma wrote:
After using a man command, (I recently read up on man mount) how do I get back to the shell prompt?
I tried ESC, but most intelligently it just parrots my key - says "ESC" and does nothing else. Ctrl+F4 completely closes the Konsole window.
"q" for quit
participants (10)
-
Carl E. Hartung
-
Clayton
-
Dave Howorth
-
Dotan Cohen
-
Greg Wallace
-
James Knott
-
Ken Schneider
-
Randall R Schulz
-
Shriramana Sharma
-
Theo v. Werkhoven