Skip to content

Instantly share code, notes, and snippets.

@sometimescasey
Last active April 9, 2019 16:22
Show Gist options
  • Save sometimescasey/14267d49b0ea1bc1a42f5f73f65eb74d to your computer and use it in GitHub Desktop.
Save sometimescasey/14267d49b0ea1bc1a42f5f73f65eb74d to your computer and use it in GitHub Desktop.
Screen basics

I always forget the basics of screen:

See what's currently running

screen -ls

Make a new named screen session, do stuff, detach

screen -S nameofsession

# do some stuff in new session
# Ctrl-A Ctrl-D to detach

Re-attach

screen -r nameofsession
screen -r [session #]

Kill a old detached screen session

screen -X -S [session #] quit

And opening remote files in Sublime:

Example entry for ~/.ssh/config to port-forward:

Host hostname
	HostName hostname.cs.toronto.edu
	User casey

Opening a file in my local Sublime, from the remote machine:

rsub file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment