티스토리 뷰

카테고리 없음

Byobu 사용법

충연 2020. 1. 23. 01:43

Byobu (屏風, 병풍)

  • by Dustin Kirkland, https://www.linkedin.com/in/dustinkirkland
  • byobu는 screen과 tmux를 백엔드에서 작동시킴(default=tmux)
  • 별다른 설정 없이 screen을 쓰고 싶으면 byobu-screen 이라고 하면 된다.

설치

sudo apt-get install byobu

# 터미널 실행시 자동시작하게 하려면(별로 추천하고 싶지 않음)
byobu-enable

# 백엔드 멀티플렉서 선택(TMUX or Screen)
byobu-select-backend

# 터미널 변경해서 색상 표시하기
byobu-enable-prompt
. ~/.bashrc

키바인딩 변경하는 방법(예: C-F2 --> C-H)

$ sudo vim /usr/share/byobu/keybindings/f-keys.tmux

# Change
bind-key -n C-F2 display-panes\; split-window -h -c "#{pane_current_path}"

# To
bind-key -n C-H display-panes\; split-window -h -c "#{pane_current_path}"

# Save the file

# Byobu 실행중이라면 이렇게 두 번 해줘야 함
$ byobu-keybindings
Byobu keybindings: [OFF]
$ byobu-keybindings
Byobu keybindings: [ON]

하나씩 골라서 닫기

# Pane 하나
byobu kill-pane -t <pane#>

# Window 하나
byobu list-windows
byobu kill-window -t 3

원격 접속시 창 크기 리셋

Alt-F6

히스토리 지우기

byobu clear-history

# .bashrc에 아래와 같이 alias 등록해서 쓰면 편함
alias cls='clear && byobu clear-history'

# 작업중인 pane에서 지우고 싶다면? byobu에 단축키를 할당해서 쓰자
sudo vim /usr/share/byobu/keybindings/f-keys.tmux를 열어서,
--> bind-key -n C-K clear-history 추가하고,
byobu-keybindings를 두 번 입력해서 활성화

# 위 단축키가 혹시 Windows Terminal에 bound 되어 있어서 실행이 안된다면,
# 설정 열어서 아래 unbound 규칙 추가
{ "command": "unbound", "keys": [ "ctrl+k" ] }

 

기본적인 사용법은 아래 참고

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-byobu-for-terminal-management-on-ubuntu-16-04

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함