Create a new screen socket (-S 可以輸入這個screen socket 的名稱)
# screen -S screen-socket-name
Show screen socket
# screen -ls
There are screens on:
22161.ttyp9.www (Detached)
24317.ttyph.www (Attached)
24507.ttyph.www (Detached)
3 Sockets in /tmp/screens/S-root.
Enter a detach socket
# screen -dr 22161.ttyp9.www
In the screen window
Edit the title
Ctrl+A A
Enter copy mode (利用copy mode 可以看上面之前秀的資料, 利用keyboard 來 scroll up)
Ctrl + A, [
Copy mode - Column 15 Line 35(+100) (103,35)
要copy 之前, 先利用 [space] 來做copy starting point 定位,
然後再利用 [space] 來做copy ending point 定位
當離開copy mode 之後, 可以利用
ctrl+A, ] 來 貼上剛才所存的 screen buffer (利用space 定位所存的screen buffer)
show all the available screen windows
Ctrl + A "
On-Line Help
Ctrl + A ?
另外有一個重點就是, 當 screen 與 linux/bsd minicom 共用時,
原先 minicom 的 Ctrl+A P 組合鍵要改成 Ctrl+A A P
亦即原先的組合鍵
Ctrl+A X
都要改成
Ctrl+A A X
才可以work
// Change screen cut-paste mode scrollback buffer size
1. Enter scrollback command mode: Ctrl+A :
2. change scrollback buffer size: scrollback num
Regions/ Multiple Windows in Screen
ctrl a S //split current window. Leaves bottom screen empty
ctrl a //tab between regions/split screens
ctrl a Q //unsplit all windows from screen
Set the screen status bar
vi $HOME/.screenrc
caption string "%w"
hardstatus on
hardstatus alwayslastline
hardstatus string "%w%=%m/%d %c"