LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Exit man, switch processes (https://www.linuxquestions.org/questions/linux-newbie-8/exit-man-switch-processes-53120/)

Bellrang 04-02-2003 06:28 PM

Exit man, switch processes
 
Couple of quick questions...

1. How do I really exit out of a man session. Usually, I ctrl-z out and then kill the process. There's got to be a better way...

2. Let's say I switch out of a process (like a MySQL session) and then want to switch back to it...how?

Thanks for the help

Crashed_Again 04-02-2003 06:42 PM

1. You can press the letter q or you can do ctrl-c

2. What do you mean by switch out of a process? Do you mean if you login to MySQL and then logout how do you log back in?

?????????????????????????????????????????????????????????

Bellrang 04-02-2003 06:59 PM

No, let's say I do a ctrl-z out of it. The process is still running. Can I get back to it? Does this work like the "Alt-Tab" in Windows?

0x0001 04-03-2003 08:40 AM

If you CTRL-Z out it is no longer running, it is suspended.
You can keep it running in the background if you type in bg.
You can get back to the process by using fg.
You can list the processes running in the back with jobs.

All of these commands should be described in the man page of your shell. I know they work with bash(1) and tcsh(1). I don't know how this works with different shells.


If you do this a lot i suggest that you look at screen(1).

Bellrang 04-03-2003 10:15 AM

fg was what I was looking for - thank you very much :D


All times are GMT -5. The time now is 03:25 PM.