---
layout: page
category-page: intermediate
category-title: Intermediate commands
tags: stopped job fg foreground
author: Fabiano Fenini
title: fg
previous-page: pages/cmd/interm/curl.html
next-page: pages/cmd/interm/git.html
---
The fg
command allows us to continue a stopped operation by running it
in foreground.
The command name stands for foreground.
fg [%job_number]The parameter [%job_id] contains the job number you wish to run in foreground. If this is not indicated, the command will run the last stopped operation.
fg
you need to press the ctrl + Z
keys. The job number to be used with the
fg
command will be printed.
top ^Z [1] + NNNN suspended top