Linux command
bg 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Resume the most recently stopped job in the background
bg
Resume a specific job by number
bg %[1]
Resume a job whose command begins with a string
bg %[string]
说明
bg resumes suspended jobs in the background. It is a shell built-in command that continues execution of jobs that were stopped (typically with Ctrl+Z) while allowing continued use of the terminal. If no job is specified, the most recently stopped job is resumed. The command is part of POSIX shell job control functionality and is available in bash, zsh, ksh, and other POSIX-compatible shells.
FAQ
What is the bg command used for?
bg resumes suspended jobs in the background. It is a shell built-in command that continues execution of jobs that were stopped (typically with Ctrl+Z) while allowing continued use of the terminal. If no job is specified, the most recently stopped job is resumed. The command is part of POSIX shell job control functionality and is available in bash, zsh, ksh, and other POSIX-compatible shells.
How do I run a basic bg example?
Run `bg` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more bg examples?
This page includes 3 examples for bg, plus related commands for nearby Linux tasks.