<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>YIYU.log</title>
        <link>https://velog.io/</link>
        <description></description>
        <lastBuildDate>Fri, 03 Jul 2020 03:00:41 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>YIYU.log</title>
            <url>https://images.velog.io/images/ur-luella/profile/d1ad8060-3cc7-4194-9e06-9d99e017583a/IMG_0538.JPG</url>
            <link>https://velog.io/</link>
        </image>
        <copyright>Copyright (C) 2019. YIYU.log. All rights reserved.</copyright>
        <atom:link href="https://v2.velog.io/rss/ur-luella" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[[Linux] tmux 사용법]]></title>
            <link>https://velog.io/@ur-luella/tmux-%EC%82%AC%EC%9A%A9%EB%B2%95</link>
            <guid>https://velog.io/@ur-luella/tmux-%EC%82%AC%EC%9A%A9%EB%B2%95</guid>
            <pubDate>Fri, 03 Jul 2020 03:00:41 GMT</pubDate>
            <description><![CDATA[<blockquote>
<p>리눅스에서 하나의 창이 아닌 여러 창을 함께 사용할 때 유용한 tmux 사용법이다. 리눅스 원격 연결이 꺼져도 서버가 꺼지지 않는 이상 tmux로 돌려놓은 코드는 다운되지 않는다.</p>
</blockquote>
<h3 id="tmux-구성-요소">tmux 구성 요소</h3>
<ul>
<li>session: 여러 윈도우로 구성</li>
<li>window: 터미널 화면, 세션 내에서 탭처럼 사용 가능</li>
<li>pane: 하나의 윈도우 내에서의 화면 분할</li>
</ul>
<h3 id="session-관련-명령어">session 관련 명령어</h3>
<pre><code class="language-powershell"># 새로운 세션 생성
tmux new -s (session_name)

# 세션 만들면서 윈도우랑 같이 생성
tmux new -s (session_name) -n (window_name)

# 세션 종료
exit

# 세션 목록
tmux ls

# 세션 다시 시작하기(다시 불러오기)
tmux attach -t session_number

# 세션 중단하기
(ctrl + b) d

# 스크롤하기
ctrl + b + [

# 특정 세션 강제 종료
tmux kill-session -t session_number</code></pre>
<h3 id="윈도우-관련-명령어">윈도우 관련 명령어</h3>
<pre><code class="language-powershell"># 새 윈도우 생성
(ctrl + b) c

# 새 윈도우 이동
(ctrl + b) b (숫자)</code></pre>
<h3 id="틀-관련-명령어">틀 관련 명령어</h3>
<pre><code class="language-powershell"># 틀 나누기
(ctrl + b) % #좌우로 나누기
(ctrl + b) &quot; #위아래로 나누기

# 틀끼리 이동하기
(ctrl + b) 방향키
(ctrl + b) q
(ctrl + b) o #순서대로 이동

# 틀 삭제
(ctrl + d)

# 틀 사이즈 조정
(ctrl + b) : resize_pane -L 10 #L,R,U,D 입력하면 상하좌우로 조절됨
(ctrl + b) (alt) 방향키

# 단축키 목록
(ctrl + b) ?</code></pre>
]]></description>
        </item>
    </channel>
</rss>