16 The Terminal and Job Control

1 The Terminal

1.1 tty and virtual tty’s

  1. tty:TeleTYpewriter(老式的打字机)
  2. 当计算机启动,7个tty被加载,前6个是命令行,第7个是X-session
  3. 使用Ctrl-Alt-F#切换
  4. 还有virtual tty虚拟的tty

1.2 Login from tty to shell

2 Job Control and Sharing a Terminal

2.1 Terminating and Stopping a Job

  1. ctrl + c 发送 SIGINT信号 中断进程(安全退出)
  2. ctrl +z 发送 SIGSTOP信号 后台,并阻塞进程

2.2 Continue a Job in the foreground and background

操作描述
cmd &execute a job in the background
Ctrl-Zstop a currently running job
bgcontinue the last stopped command in the backgorund
bg %icontinue job number i in the background,
fgbring the last job from the background to the foreground
fg %ibrint job number i from the background to the foreground
jobslist the current jobs, stoped and running
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值