0

Linux常用命令-111:jobs

 1 year ago
source link: https://xugaoxiang.com/2022/10/10/linux-cmds-111-jobs/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

jobs 命令主要用于显示系统中的任务列表及其运行状态。

语法格式: jobs [参数] [目录]

常用参数:

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

aed69de5e349615d.png

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

176f0810cfea5a46.png

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

d73e481ef6125e4a.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK