Reputation: 23
I have created screen session with the help of screen command in Linux, for example I have created screen session with 5 bash terminals, after that in one of the created terminal I have sent "pwd" command to all the terminals with the help of following actions:
:at "#" stuff "pwd^M"
ls
command: :at "#" stuff "ls^M
to all the terminalspwd
command (#2) againTo send this I was looking for a history of the commands I sent to all terminals in screen (like hitting up arrow in bash to go through the history). All I got was the last command executed.
How do I get to the other commands I've executed in screen? Specifically, in this example, how do I get to the command I typed at #2?
Upvotes: 1
Views: 2166
Reputation: 19395
How do I get to the other commands I've executed in screen? Specifically, in this example, how do I get to the command I typed at #2?
screen
promptUpvotes: 0
Reputation: 1452
Did you try ctrl+r
. This is for bash but also works on screen provided it was already in the history.
Just do ctrl+r
and start typing the command. It will autofill the command from the history.
Upvotes: 0
Reputation: 363
if you type:
history
you will get the history of the commands. Will it help you?
Upvotes: 1