我在命令外壳上使用屏幕多路复用器工具并打开很多屏幕。然后我忘记了哪个进程 ID 与哪个任务相关联。
我想为屏幕设置名称,但在手册页中找不到选项。
目前,列出屏幕如下所示:
There are screens on: 5422.pts-1.aws1 (Detached) 5448.pts-1.aws1 (Detached) 5027.pts-1.aws1 (Detached) 3 Sockets in /var/run/screen/S-sb.
我想看到这样的东西:
There are screens on: 5422.logCleanWorker (Detached) 5448.overNightLongTask(Detached) 5027.databaseOverNightLongTask (Detached) 3 Sockets in /var/run/screen/S-sb.
我怎样才能做到这一点?
screen -S your_session_name
Ctrl+ a,:会话名称 YOUR_SESSION_NAMEEnter
Ctrl
a
:
Enter
您必须在会话内