[GLLUG] bash CTRL-Z Question

Marshal Newrock marshal at simons-rock.edu
Tue Nov 16 12:19:07 EST 2004


On Tue, 16 Nov 2004, Brian Hoort wrote:

> Greetings and Salutations, oh wise ones.
>
> CTRL-Z in bash puts a process on pause and gives you your prompt back so you 
> can do something quick.  How can I do the same thing but still have the 
> process run while in the background?  Couldn't find with quick search.  Is it 
> possible?

Use 'bg' to put the process in the background.  However, it will disappear 
if you close your shell.  'help bg', 'help fg', and 'help jobs' for more 
info.

A better option would be to start the process in screen, unless you 
specifically want to pause the first process, and can't do something quick 
unless that process is paused.  screen is especially good if you're ssh'd 
in.

And you can also just fire up another shell or terminal.

-- 
Sometimes the garbage disposal gods demand a spoon
()  The ASCII Ribbon Campaign against HTML Email,
/\  vCards, and proprietary formats.
   http://www.georgedillon.com/web/html_email_is_evil.shtml


More information about the linux-user mailing list