Page 1 of 1

การใช้ screen เพื่อค้าง console เดิม ให้สามารถเรียกดู console output ได้ภายหลัง

Posted: 18 Sep 2020, 15:53
by brid.surapol
เข้าไปใน directory ที่ต้องการจะ run คำสั่ง

แล้ว

Code: Select all

screen
แล้ว run คำสั่งที่ต้องการ monitor console output
ใช้ keys

Code: Select all

ctrl-a d
เพื่อ detach screen


. . .

เมื่อต้องการกลับมาดู console output
ให้ใช้คำสั่ง

Code: Select all

screen -r

Re: การใช้ screen เพื่อค้าง console เดิม ให้สามารถเรียกดู console output ได้ภายหลัง

Posted: 28 Aug 2026, 08:26
by brid.surapol

Code: Select all

tmux new -s #session_name
after ssh droped, or ssh end

Code: Select all

tmux attach -t #session_name

Code: Select all

tmux ls
to detach
ctrl + b
then
d