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 πŸ”₯


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