Running programs from shell
Is there any way of starting a GUI program from shell and not run it trough that shell?
(So i can close that terminal window and keep the GUI program). Thanks. //Plmajholm |
You can try something like this:
Code:
firefox & |
Thanks!!! :D
|
if you forget to append the &, you can background the process this way:
Code:
$ firefox <Ctrl>+Z - Hold Ctrl, press Z - suspend the process bg - stick a suspended process in the background if you have multiple suspended processes, get the process number with Code:
$ps Code:
$bg PROC_NUM Enjoy |
You can also use
jobs to see which jobs are running from the terminal, for example my jobs: [1]+ Stopped less [2]- Stopped nano As said, Ctrl-Z stops running program (puts it on above joblist) bg %1 would - in case above - background "less", and bg %2 would do so to "nano" fg %<number> in contrary activates the chosen program. This is in my opinion easier than to use "ps" to see which process to background |
All times are GMT -5. The time now is 10:45 PM. |