There is no manual entry for ctrl-z or fg.

What does "fg" stand for in the context of job control? In other words, typing ctrl-z will suspend the current job drop me back into the shell, and the command "fg" re-activates the suspended job. What does "fg" stand for?

  • 2
    it's fore ground – cuonglm Mar 17 '17 at 6:50
  • In fact, on a system with (say) the C shell, the Korn shell, and the Z shell available, there will be three manual entries for it. man zshbuiltins being one. – JdeBP Mar 17 '17 at 8:24


As with other bash built-ins, there is help for it:

$ help fg
fg: fg [job_spec]
    Move job to the foreground.

    Place the job identified by JOB_SPEC in the foreground, making it the
    current job.  If JOB_SPEC is not present, the shell's notion of the
    current job is used.

    Exit Status:
    Status of command placed in foreground, or failure if an error occurs.

Also, bg is BackGround, and ^z is in the bash man page, under Job Control:

   If  the operating system on which bash is running supports job control,
   bash contains facilities to use it.  Typing the suspend character (typ‐
   ically ^Z, Control-Z) while a process is running causes that process to
   be stopped and returns control to bash.   Typing  the  delayed  suspend
   character  (typically  ^Y,  Control-Y) causes the process to be stopped
   when it attempts to read input from the terminal,  and  control  to  be
   returned  to bash.  The user may then manipulate the state of this job,
   using the bg command to continue it in the background, the  fg  command
   to continue it in the foreground, or the kill command to kill it.  A ^Z
   takes effect immediately, and has the additional side effect of causing
   pending output and typeahead to be discarded.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.