我screen在命令外壳上使用了多路复用器工具,并打开了许多屏幕。然后,我忘记了哪个进程ID与哪个任务相关联。
screen
我想为屏幕设置一个名称,但是在手册页中找不到选项。
当前,列出屏幕如下所示:
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
您必须在会话中