Monday, 24 July 2017

Using screen with UNIX/Linux

Using screen with UNIX/Linux

One wise sysadmin trick is to always type "screen" as soon as you log into any remote system. The reason being that if you need to come back to something, a long download or file transfer for example, then you can always detach the screen session, log out, and come back later. The session will remain open and whatever you were doing will keep running.
I recently downloaded a large backup file from a far away, remote server on a slow connection. Thanks to screen I was able to start the transfer from the far remote system to another, nearby remote system and then logout. I could then login periodically to that system, reattach the screen session, look at the progress, and detach it again and log back out. I was also able to do this multiple times, from multiple systems. It's a super handy tool and something every Linux user should know how to use.
https://www.tecmint.com/screen-command-examples-to-manage-linux-terminals/

3 comments:

  1. Screen and tmux are the bee's knees. I'm constantly surprised how many senior level engineers and developers don't know about these tools.

    While I love screen my annoyance is they default to using keys which conflict with emacs key maps.

    ReplyDelete
  2. Greg Copeland vim works fine though heathen. ;')

    ReplyDelete
  3. Heathen/pagan observations become holidays. One day you too will be celebrating Emacimas.

    You are forgiven for your transgressions. :]

    ReplyDelete