I really need to seriously start learning linux. I have been fudging around it learning basic commands but just didn’t spend enough time to dig deeper aside from the basic -ls commands.
The other day I had to perform some iperf test for a customer but our iperf is installed on some debian linux server. I was given a simple how to document, I know how to run iperf but on a windows machine.
Part of the instruction mentioned about “screen”. So in this short blog, I will share my experience with screens.
Screens
– use for multiple shell windows from a single ssh session. This is basically very useful so let us say you only have the CLI but you’d like to multi-task. Doing back-ups while trying to access a network device, while installing an application on the same server. Screens lets you scroll through different CLI sessions though a single SSH shell session.
ctrl-a + c = creates a new window
Moving between windows/screens
ctrl-a + n = moves to the “next screen”
ctrl-a + p = moves to the “previous” screen
ctrk-a + d = if you want to “detach” from a screen
screen -r = this is to reattach you from the screen if the session dropped or you just want to reattach your session
if there are multipl sessions
screen -r ####
#### – stands for he screen number available to you
screen or screen -ls = will show you the list of available screen and will show you which ones are you attached and detached from.
ctrl-a + k = short cut key to kill the current screen
note= typing exit will exit you out of your screen, its best practice to close all screens once you are done.