On Thursday 17 January 2008 15:34:01 David C. Rankin wrote:
Marcin Floryan wrote:
On 17/01/2008, Randall R Schulz <rschulz@sonic.net> wrote:
In addition to Jim C.'s suggestions, you can also start an interactive shell via su (or sudo) and then use the built-in "suspend" command to go back to the non-root shell from which it was invoked. Then you can re-enter it using the usual job-control commands. The shell will only honor a "suspend" command when it's not a login shell, so you don't have to worry about suspending a shell with no other shell "above" it to handle the suspended process state.
I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too.
-- Marcin Floryan http://marcin.floryan.pl/
Please consider the environment before printing this email.
Alright, looks like I have to add a few tools to my tool box. With regard to screen, what advantages does it have over running konsole with multiple sessions? I've looked at the man page, but can't figure out what the advantage would be over multiple tabs in konsole and using shift+rt or shift+lt arrows to move between screens. Marcin, what are your thoughts?
The beauty of screen is that you can open a session in a konsole window on your desktop at work, and then from home ssh to your work PC, and detatch the screen session from your work desktop and have it appear on your home konsole window. Then the next morning, you can go to a client's office and move the screen view to the konsole window on your laptop. All this without interrupting in any way the shell, or vi session, or mysql session, or whatever you had running when you created the screen session at the office. You can have multiple screen sessions open on a single konsole window, one visible at a time. You can even open a screen session on a virtual console of a machine not running X at all, and then view that session inside a KDE konsole from some arbitrary remote system (provided you can get in, say with ssh). This just scratches the surface, and I know there's lots about screen I've never even tried or know exists. Jim Cunning -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org