How do I get the command history in a screen session using Bash?

前端 未结 7 1747
悲&欢浪女
悲&欢浪女 2021-02-01 19:08

If I start a screen session with screen -dmS name, how would I access the command history of that screen session with a script?

Using the , the

7条回答
  •  北荒
    北荒 (楼主)
    2021-02-01 19:44

    use this: screen -L with capital L it will store a copy of terminal input and output to a file named screenlog.0 or if you use -S to name it, the log file gets the screen name

提交回复
热议问题