screen セッション名 変更
セッションをアタッチしてrename
screen -S <変更前セッション名> -X sessionname <変更後セッション名>
[user@host ~]$ screen -ls work There are screens on: 15344.work (Detached) 25012.work (Detached) 2 Sockets in /var/run/screen/S-mori. [user@host ~]$ screen -S 15344.work -X sessionname work1 [user@host ~]$ screen -ls work There are screens on: 25012.work (Detached) 15344.work1 (Detached) 2 Sockets in /var/run/screen/S-mori. [user@host ~]$ screen -ls work There are screens on: 25012.work (Detached) 15344.work1 (Detached) 2 Sockets in /var/run/screen/S-mori.
セッションをアタッチしてrename
アタッチしている状態で、
[Ctrl]+[Prefixキー] 押下
“:sessionname <変更後セッション名>” と入力
[user@host ~]$ screen -dr 25012.work # Ctrl + B # :sessionname work2 [user@host work]$ screen -ls work There are screens on: 25012.work2 (Attached) 15344.work1 (Detached) 2 Sockets in /var/run/screen/S-mori.
コメント