The jobs command is mainly used to display the list of tasks in the system and their running status.
Syntax format: jobs [parameter] [directory]
Common parameters:

Example
# 显示当前的作业列表,这里以top命令为例,执行后按下ctrl+z 将任务放入后台并暂停任务jobs

# 显示进程号和任务号,最前面的2就是任务号jobs -l

# 只显示暂停的任务jobs -s

This article is reprinted from https://xugaoxiang.com/2022/10/10/linux-cmds-111-jobs/
This site is for inclusion only, and the copyright belongs to the original author.