Skip to content

Instantly share code, notes, and snippets.

@stevenocchipinti
Last active December 16, 2015 19:39
Show Gist options
  • Save stevenocchipinti/5486606 to your computer and use it in GitHub Desktop.
Save stevenocchipinti/5486606 to your computer and use it in GitHub Desktop.
Screen
#!/bin/bash
################################################################################
# REATTACH or CREATE a session called "bla"
screen -xR bla
# Send "date" to the session called "bla"
screen -S bla -X stuff date
################################################################################
# List running screen sessions
screen -list
# Start a screen session named "bla"
screen -S bla
# Attach to a dettached screen session named "bla"
screen -r bla
# Attach to an already attached screen session named "bla"
screen -x bla
################################################################################
# More options that may be useful
-A # Resize all windows to fit the current terminal size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment