Last active
December 16, 2015 19:39
-
-
Save stevenocchipinti/5486606 to your computer and use it in GitHub Desktop.
Screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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