C语言linux控制蛇,蟒蛇:如何在Linux的

您也可以使用屏幕實用程序,允許您在單個終端窗口或遠程終端會話內訪問多個單獨的終端會話。

這意味着您可以設置一個屏幕會話(使用您選擇的名稱),在其中啓動一個程序(例如使用&),從會話中分離並稍後重新連接。

啓動未命名的屏幕。

$ screen

要具有特定名稱使用創建一個新的會話:

$ screen -S backup

- 這些都命令創建一個新的持久的會話,你可以使用它作爲一個普通的終端窗口,即發出指令並運行腳本。

如果你想離開會話而不終止它,使用:

Ctrl+a d command (press and hold Ctrl, press and hold a, then press d) to detach from the session.

要查看runnging屏幕的列表:

$ screen -ls

到正在運行的屏幕連接到控制檯:

$ screen -R

當屏幕正在運行時,可以使用以下鍵組合,並將其連接到控制檯。所有關鍵組合開始於按壓控制和同時開始。

ctrl+a d - detach the screen, and let it run without user interface (as described above)

ctrl+a c - create a new terminal

ctrl+a A - set the name of the current terminal

ctrl+a n - switch to next terminal

ctrl+a p - switch to prev terminal

ctrl+a " - list the of terminals

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值