|
|
|
Many of you may already know this from other unices as a way to exit the shell, but for those that don't ... Control-D will work to exit the >console mode as well. However, I've noticed a tendency for the system (Jag 10.2.x) to hang a bit if the key combo is executed immediately (within one to three seconds) after entering >console mode. The login GUI eventually appears, however.
•
[7,648 views]
Hint Options
The delay is normal
If you type CTL-D immediately, you are doing so to the login: prompt. The CTL-D (end-of-file) causes getty to exit. Init then has to catch the termination, check /etc/gettydefs, and spawn a new getty process.
Exit >console mode cleanly and easily
Some of you get it. Others, let me be more specific... When entering >console mode (at gui login enter >console for the name with blank password), you are greeted with a command line login prompt. Normally, "exit" or "logout" would work if you were logged in. But you're not. So, this is how you exit back to the gui login without having to login first . The only other way is either physically rebooting or failing the login 9 times (hmm... I wonder if there is a way to change this number? Anyone?).
Umm, why not just 'exit'?
Am I missing something here? The proper way to exit a console or terminal session is and has always been to simply type 'exit' and hit return. The exit command saves your command history to your .tcsh_history file, so you can scroll through them at a later session, checks for running background processes and shuts down any other resources associated with your session cleanly and quickly. It does this in about a half a second. Why anybody would exit a console or terminal session any other way is beyond me.
Umm, why not just 'exit'?
I ought to be spanked.
Umm, why not just 'exit'?
I believe the shell traps ctrl-D and does an exit - i.e.; you're doing the same thing.
How about 'logout'?
I've always typed 'logout'. That's what I use on other "Unix-like operating systems" as well. But maybe there's a better way?
timely hint, am dumped to console
A timely hint for me, thanks. If I type my password incorrectly I am dumped to the console login. I've been doing ctrl-D immediately and have noticed the hang. Now I will wait a bit, thanks!
timely hint, am dumped to console
I just noticed the same thing (about 10 minutes before reading the above post), but it's probably because my 6 yr. old daughter had been using my wife's computer for an hour or so. (who knows what they REALLY are doing) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.32 seconds |
|