FG(1)
πΈ FG(1) β the fish-shell manual, but make it cute πΈ
okay bestie, welcome to the fg page of the fish-shell docs π
this one's short and sweet, so let's get into it β¨
β¨ NAME β¨
fg β bring job to foreground π«Ά
π SYNOPSIS π
fg [PID]
π DESCRIPTION π
okay so the fg builtin brings the specified job <#syntax-job-control> to the foreground, and it resumes it if it's stopped β¨ literally just "come back here, babe" energy.
While a foreground job is executed, fish is suspended π΄ β yeah, the shell just sits there and waits, no cap.
If no job is specified, the last job to be used is put in the foreground π. And if PID is specified, the job containing a process with the specified process ID is what gets pulled to the foreground π
For compatibility with other shells, job expansion syntax is supported for fg π β a PID of the format %1 will foreground job 1. Job numbers can be seen in the output of jobs <>. iykyk π«
The --help or -h option displays help about using this command π β your little safety net fr fr.
π¦ EXAMPLE π¦
fg will put the last job in the foreground π
fg %3 will put job 3 into the foreground π₯
π Copyright π
fish-shell developers π
and that's the whole page, bestie β no notes, she ate π
β¨ this was FG(1), version 4.9, dated Sep 08, 2026, brought to you by the fish-shell crew π«Άπ go foreground something iconic today πΈ
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms