Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 2
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
4. Process control
  


fg and bg page 3 of 15


To get the process "un-stopped" and running again, we can bring it to the foreground with the bash built-in fg:


$ fg
xeyesandxeyes

^Z
[1]+  Stopped                 xeyes -center red
$

Now continue it in the background with the bash built-in bg:


$ bg
[1]+ xeyes -center red &
$

Great! The xeyes process is now running in the background, and we have a new, working bash prompt.


Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact