如何在 Linux 終端機中實際輸入 CTRL-A?

如何在 Linux 終端機中實際輸入 CTRL-A?

如何在 Linux 終端機會話中呼叫Ctrl- 。a我正在嘗試使用 screen 共享螢幕。

打開多用戶的命令是Ctrl- A:multiuser on ,我知道如何按鍵盤上的Ctrl+但-的命令行版本是什麼?aCtrla

我該如何輸入Ctrl- A:multiuser on,而不會讓 Linux 告訴我們找不到該命令?

答案1

由於您正在screen會話中,請按Ctrl+AA再次按。

答案2

我知道您可以從螢幕會話中向螢幕發送命令。所以從手冊頁來看:

  -X   Send the specified command to a running screen  session.  You  can
        use  the  -d or -r option to tell screen to look only for attached
        or detached screen sessions. Note that this command  doesn't  work
        if the session is password protected.

這導致:

screen -X multiuser on

從螢幕內調用它應該可以完成這項工作。現在無法親自測試。

相關內容