1> 要進行某項操作時,先使用命令創(chuàng)建一個Screen:
[linux@user~]$ screen -S test1
2>接著就可以在里面進行操作了,如果你的任務(wù)還沒完成就要走開的話,使用命令保留Screen:
[linux@user~]$ Ctrl+a+d #按Ctrl+a,然后再按d即可保留Screen
[detached] #這時會顯示出這個提示,說明已經(jīng)保留好Screen了
如果你工作完成的話,就直接輸入:
[linux@user~]$ exit #這樣就表示成功退出了
[screen is terminating]
3> 如果你上一次保留了Screen,可以使用命令查看:
[linux@user~]$ screen -ls
There is a screen on:
9649.test1 (Detached)
恢復(fù)Screen,使用命令:
[linux@user~]$ screen -r test1 (or 9649)
4>關(guān)閉打開的窗口
Ctrl+a k
原文地址: http://www.9usb.net/201002/linux-screen-mingling.html