How to use the screen command line utility in Linux
Vložit
- čas přidán 11. 07. 2020
- In this Linux how to video you will learn how to use the linux screen utility in the command line. You will see how to use screen to keep a session alive even after disconnecting. You will also see how to split your screen to run more than one application side-by-side.
This video makes use of the following keyboard shortcuts:
screen -S (name) Create a new session
screen -ls List sessions
screen -r Reconnect last
screen -r (name) Reconnect specific
Ctrl-a d - Disconnect
Ctrl-a c - New window
Ctrl-a # - Change to window
Ctrl-a n - Next window
Ctrl-a p - Previous window
Ctrl-a S - Split horizontally
Ctrl-a | - Split vertically
Ctrl-a tab - Switch region
Subscribe to get the latest videos: go.itpro.tv/subscribe
Start your Linux training free! go.itpro.tv/start-learning-now
Connect with Don Pezet:
Twitter: / donpezet
LinkedIn: / donpezet
Blog: blog.itpro.tv
Enjoying this show? Get access to more online IT skills and certification training from ITProTV. Home of binge-worthy learning, ITProTV offers teams and individuals 5800+ hours of engaging & effective on-demand video training for the latest technology skills. Watch live or on-demand daily. Start learning free at ITProTV: go.itpro.tv/start-learning-now
#ScreenUtilityLinux #LinuxScreenUtility #LinuxScreenCommandLine
Amazing video goes straight to the point with simple introduction and examples that are easy to follow.
Thank you for this video.
Great presenter this guy, over last 1-2 years there are surfacing more and more!
Good presentation. Thank you!
Great tutorial, thank you!
your channel is great thanks!
great video . deserve million views
awesome tutorial man! thank you... I might be lazy and this might come as demanding (please don't take it that way), but you could also put a list with the commands at the end of the video (or not 😆) like I said, I'm lazy and it felt like a quick shortcut to that list at the very end would have been a quick screenshot and ready to go ! thank you again, you are amazing !!
being "lazy" isn't cool. It won't bring you anywhere.
10 point for the OS2 Warp box on the shelf... but where is the REXX handbook?
While in a screen session I was disconnected from the server and when I logged in back to the server, the screen session was still attached and I couldn't access the session. What would be the solution in this situation?
How to scroll a cursor in split terminals and stretching windows?
You will need to enter "scrollback mode" first. You can do that by pressing "Ctrl+a ["
Last metadata expiration check: 0:18:49 ago on Mon 30 Jan 2023 10:31:39 AM GMT.
No match for argument: screen
Error: Unable to find a match: screen
update the repos for your OS
Thanks for the video, I have two main challenges with screen:
1- Copy data from screen pane to an outer file (i.e. leafpad or even another temrinal), as normally the copy works with me internally only.
2- Maintain the order of so called "panes" after dettach/rettach , for example, if i have a screen splitted horizontally then disconnected, when i reconnect i will have only the first screen and i have to split them over again.
Is there a way out from those two issue ?
#1: If I understand you correctly there's not a good fix from within screen. However, you can use your terminal's copy/paste or logging features to get data out without using screen's functions.
#2: Assuming you always want the same layout, you can modify screenrc or create a configuration file that defines how the panes are laid out. Then it will launch in the desired configuration every time.
@@ITProTv appreciating so much your reply.
I think it won't be possible, firstly, using terminal copy is fine but if there are lines in the scroll area, then it won't work, also if the screen is splitted vertically, the copied line will copy from both panes ..
I can noe understand that this is not applicable in screen.
Thanks again for your help
@@ITProTv is there any linux screen command to down/deactivate a particular screen session and to activate screen session back
So it's an alternative to tmux
Yes, however it would be more accurate to say that tmux is an alternative to screen as the screen utility has been around a lot longer. tmux came out in 2007. screen was released in 1987.