Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
i know if i run a command and attatch & to it, it will run it in the background and give me the prompt back, but lets say i dont start a program that way, and i want to later send it to the background, what is the command for that, i forgot
You can start running the job interactively,
Ctrl-z will move it into the background, but there's a catch; it'll be stopped.
If its the only job you can type bg and it'll start running again in the background.
If it has a number other than [1] associated with it ( 2 for instance ), you can type bg %2
To move it into the foreground ( you guessed it ) fg -or- fg %2
To list all of the jobs ( you guessed it again ) jobs
just to add, i dont REALLY need an answer to this badly, its just that sometimes i forget to put the & on the end and i was wondering if there were a way to get the prompt back without having to stop and restart the programming just to add the &
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.