How to use the screen command line utility in Linux

Sdílet
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

Komentáře • 20

  • @mohbkhaled6051
    @mohbkhaled6051 Před rokem +4

    Amazing video goes straight to the point with simple introduction and examples that are easy to follow.
    Thank you for this video.

  • @peterg91
    @peterg91 Před rokem

    Great presenter this guy, over last 1-2 years there are surfacing more and more!

  • @sebastianmusat8857
    @sebastianmusat8857 Před 5 měsíci

    Good presentation. Thank you!

  • @kimberly17125
    @kimberly17125 Před 5 měsíci

    Great tutorial, thank you!

  • @faanross
    @faanross Před měsícem

    your channel is great thanks!

  • @nomibachelor860
    @nomibachelor860 Před rokem

    great video . deserve million views

  • @sebastianfarias5670
    @sebastianfarias5670 Před rokem

    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 !!

    • @kevinlesieutre
      @kevinlesieutre Před 7 měsíci

      being "lazy" isn't cool. It won't bring you anywhere.

  • @AzCowboyOne
    @AzCowboyOne Před rokem

    10 point for the OS2 Warp box on the shelf... but where is the REXX handbook?

  • @HappyLifege
    @HappyLifege Před 2 lety

    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?

  • @erdene-ochirmijid4040
    @erdene-ochirmijid4040 Před 3 lety

    How to scroll a cursor in split terminals and stretching windows?

    • @ITProTv
      @ITProTv  Před 3 lety

      You will need to enter "scrollback mode" first. You can do that by pressing "Ctrl+a ["

  • @d3zz1lion
    @d3zz1lion Před rokem

    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

    • @joseb1034
      @joseb1034 Před rokem

      update the repos for your OS

  • @akkosh
    @akkosh Před 4 lety

    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 ?

    • @ITProTv
      @ITProTv  Před 4 lety +1

      #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.

    • @akkosh
      @akkosh Před 4 lety

      @@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

    • @jithinnair983
      @jithinnair983 Před 3 lety

      @@ITProTv is there any linux screen command to down/deactivate a particular screen session and to activate screen session back

  • @OmariRose1
    @OmariRose1 Před 4 lety

    So it's an alternative to tmux

    • @ITProTv
      @ITProTv  Před 4 lety

      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.