hi, i am just wondering that wen we give the following code we make a process run in background...can the viceversa be performed?i.e can this be made foreground again
[root@sandy root]# sleep 75&
[1] 21751
[root@sandy root]#
hi, i am just wondering that wen we give the following code we make a process run in background...can the viceversa be performed?i.e can this be made foreground again
[root@sandy root]# sleep 75&
[1] 21751
[root@sandy root]#
Depends on the shell. Try:
fg
hi there, i am using bash ,so shud i jump to jsh to make it foreground or will it work for bash itself
A "trick" that I like to use is..
[root@dev]# sleep 50
(then hit Ctrl-Z)
[1]+ Stopped sleep 50
[root@dev]# bg
[1]+ sleep 50 &
[root@dev]# fg
sleep 50
from man bash... fg is available in bash also, pls refer to the manual page of bash for more details.