Saturday, March 28, 2015

How to Install and Use Screen on an Ubuntu Cloud Server

Screen is a console application that allows you to use multiple terminal sessions within one window. The program operates within a shell session and acts as a container and manager for other terminal sessions, similar to how a window manager manages windows.

This is like the console version of Mac and Linux's multiple desktops. Very handy.

To run a program (say a server) in a screen session, detach it without killing the session:
     screen -d -m python server/server.py 80

This is like running the "daemonize" command, can make the program an independent daemon process.

[1] How to Install and Use Screen on an Ubuntu Cloud Server

No comments:

Blog Archive

Followers