centos7 下 byobu 的使用

centos7 下 byobu 的使用:

安裝 byobu

$ sudo yum install byobu

創建一個會話

$ byobu -S cic

進入會話之後,ctrl+a,提示配:

Configure Byobu’s ctrl-a behavior…

When you press ctrl-a in Byobu, do you want it to operate in:
(1) Screen mode (GNU Screen’s default escape sequence)
(2) Emacs mode (go to beginning of line)

Note that:
- F12 also operates as an escape in Byobu
- You can press F9 and choose your escape character
- You can run ‘byobu-ctrl-a’ at any time to change your selection

Select [1 or 2]:

選擇1

一些常用的操作:

會話

$ byobu -S cic 建立一個會話,會話名位cic

窗口

ctrl+a ctrl+c 創建一個新的窗口
ctrl+a shift+a 修改窗口名稱

ctrl+a ctrl+n 下一個窗口
ctrl+a ctrl+p 上一個窗口
ctrl+a [index] 跳轉到下標爲index的窗口

常見問題

較新版本的byobu 一直有問題。比如之前建立了一個session, 後續$ byobu -ls 看不到建立的session

$ byobu -ls
tmux: unknown option -- s
usage: tmux [-28lquvV] [-c shell-command] [-f file] [-L socket-name]
            [-S socket-path] [command [flags]]
[cic@localhost ~]$ byobu ls
failed to connect to server
[cic@localhost ~]$ byobu l
ambiguous command: l, could be: last-pane, last-window, link-window, list-buffers, list-clients, list-commands, list-keys, list-panes, list-sessions, list-windows, load-buffer, lock-client, lock-server, lock-session
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章