LoginSignup
4
4

More than 5 years have passed since last update.

Screenの基本的な使い方

Posted at

Screen

セッション起動していない時

名前をつけずにセッションを作成

$ screen

名前をつけてセッションを作成

$ screen -S セッション名

最後にデタッチしたセッションにアタッチする

$ screen -r 

セッション名を指定してアタッチする

$ screen -r セッション名

セッションの一覧

$ screen -ls
There are screens on:
    8714.hoge     (Attached)
    9216.fuga (Attached)
    9230.hage      (Attached)
3 Sockets in /var/folders/hk/pm6ff9yn6cdbx3j9fzvn42740000gn/T/.screen.

セッション起動中

shellの一覧を表示する

w

次のshellに移動する

n

前のshellに移動する

p

shellを番号を指定して移動する

移動したいshellの番号

Screen起動中にセッション名を変える

:

コマンドモードになったら

:session name hogehoge

と入れる。これでセッション名がhogehogeになる。

新規shellの作成

c

Screenのデタッチ

d

Shell毎に名前をつける

A

システム情報を表示する

t

Windowを上下に分割する

S

Windowを左右に分割する

V

分割したWindowを移動する

tab

分割をやめる

Q
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4