H I O X INDIA
LINUX Commands
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

LINUX / UNIX cmd
Introduction
Commands in A
Commands in B
Commands in C
Commands in D
Commands in E
Commands in F
Commands in G
Commands in H
Commands in I
Commands in J
Commands in K
Commands in L
Commands in M
Commands in N
Commands in P
Commands in R
Commands in S
Commands in T
Commands in U
Commands in W
Commands in Y
More about Linux
Feedback




fg Linux Commands


Topic

What is Linux fg Command?




Explanation

fg COMMAND:
     fg command is used to place a job in foreground.

SYNTAX:
  The Syntax is
     fg [specify job]

OPTIONS:
     There is no options for fg command.


EXAMPLE:
     
  1. To move a process in foreground:

    Lets start some three jobs and suspend those running process in background.

    kmail- start the email client application.
    Press ctrl+z to stop the current job.
    xmms- music player application.
    Press ctrl+z to stop the current job.
    sleep 120- a dummy job.
    Press ctrl+z to stop the current job.
    jobs
    The above command will display the jobs in the shell.
    [1]   Stopped                 kmail
    [2]-  Stopped                 xmms
    [3]+  Stopped                 sleep 120
    
    fg 1
    The above command will run the kmail application process in foreground.





        Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


privacy policy     license     sitemap
© 2004-2009 HIOX INDIA - hioxindia.com

Other Links