暂停执行shell。
suspend [-f]
suspend为shell内建指令,可暂停现在正在执行的shell。若要恢复,则必须使用SIGCONT信息。
-f 若现在执行的shell为登入的shell,则suspend预设无法暂停此shell。 若要强迫暂停登入的shell,则必须使用-f参数。
暂停目前的 shell:
$ suspend suspend:Can't suspend a login shell <—— suspend 无法暂停登入的shell $ suspend -f <—— 强制暂停目前的shell