linux挂起当前shell是什么-suspend命令使用与实例

linux挂起当前shell是什么-suspend命令使用与实例

linux suspend命令

Linux系统中的suspend命令用于暂停当前正在运行的shell进程。

该命令是shell内置命令,可以用来中断当前shell的执行。如果希望恢复执行,必须发送SIGCONT信号来继续。

语法格式

suspend [-f]

参数说明

  • -f 当前shell如果是登录shell时,默认情况下suspend无法将其挂起。若需要强制挂起登录shell,则需添加-f选项。

使用示例

挂起当前shell:

# suspend  -bash: suspend: 无法挂起一个登录 shell # suspend -f

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享