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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章