17.6. jobs

简介:

17.6.1. &

usage: command &

			
$ grep -r 'neo' / > result &
[1] 10414
			
			

17.6.2. Ctrl + Z

vim

$ vim

[2]+  Stopped                 vim


mutt

$ mutt

[3]+  Stopped                 mutt
			

17.6.3. jobs

			
$ jobs
[1]   Running                 grep -r 'neo' / > result &
[2]-  Stopped                 vim
[3]+  Stopped                 mutt
			
			

17.6.4. fg / bg

usage: fg [job_spec]

$ fg 2
			

usage: bg [job_spec ...]

			
$ cp -r /usr/ /tmp/
Ctrl + Z
[1]+  Stopped                 cp -r /usr/ /tmp/

$ bg
[1]+ cp -r /usr/ /tmp/ &

$ fg
cp -r /usr/ /tmp/
			
			

17.6.5. nohup - run a command immune to hangups, with output to a non-tty

			
nohup command > myout.file 2>&1 &
nohup command >/dev/null 2>/dev/null &
nohup command &>/dev/null
			
			

You may using 'jobs' to display task.

and using 'fg %n' to close that.




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
5月前
|
Unix Shell Linux
【pwn.college笔记】Processes and Jobs
【pwn.college笔记】Processes and Jobs
54 4
|
存储 API 流计算
Flink - checkpoint Failure reason: Not all required tasks are currently running
Flink 程序增加 readFile 生成文件流后,最初运行期间 CheckPoint 存储没有问题,待文件流 Finished 后 CheckPoint 存储报错: checkpoint Failure reason: Not all required tasks are currently running,下面分析并解决下。
2763 0
Flink - checkpoint Failure reason: Not all required tasks are currently running
|
分布式计算 Spark
《Sparklint a Tool for Identifying and Tuning Inefficient Spark Jobs Across Your Cluster》电子版地址
Sparklint a Tool for Identifying and Tuning Inefficient Spark Jobs Across Your Cluster
97 0
《Sparklint a Tool for Identifying and Tuning Inefficient Spark Jobs Across Your Cluster》电子版地址
|
Java 调度 Spring
elastic-job之简单job
简介 elastic-job是当当网开源的基于zookeeper和quartz实现的分布式作业调度框架。github地址是https://github.com/dangdangdotcom/elastic-job,官方网站是http://elasticjob.io/。
2539 0
|
Unix 关系型数据库 应用服务中间件
了解Job和JobDeatil ,JobDataMap (三)
一:定义 Job:实现任务逻辑的接口。 JobDeatil:JobDeatil为Job提供了许多设置属性,以及JobDataMap成员变量属性,他用来储存特定的Job实例状态信息,调度器需要使用JobDeatil对象添加Job实例。
1481 0
|
Oracle 关系型数据库
【JOB】Oracle JOB全面学习(DBMS_JOB和DBMS_SCHEDULER)
【JOB】Oracle JOB全面学习(DBMS_JOB和DBMS_SCHEDULER)     >>        >                                          ...
884 0