Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2887,"date":"2019-12-27T06:59:19","date_gmt":"2019-12-27T06:59:19","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2887"},"modified":"2019-12-27T06:59:19","modified_gmt":"2019-12-27T06:59:19","slug":"using-screen-on-ubuntu-14-04","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/using-screen-on-ubuntu-14-04\/","title":{"rendered":"Using Screen on Ubuntu 14.04"},"content":{"rendered":"

Screen is an application that allows multiple use of terminal sessions within one window. This allows you to simulate multiple terminal windows where it may not be normally possible. For example, over an ssh connection. Screen acts as a manager and a container for other sessions created by it, much like how a window manager works. This article will walk you through the basic usage of screen on Ubuntu 14.04. This may also work on other versions of Ubuntu (12.04, 14.10) or different distributions of Linux (Debian, CentOS).<\/p>\n

Installation of Screen<\/h3>\n

Install screen by running the following command:<\/p>\n

apt-get install screen\r\n<\/code><\/pre>\n

To verify that screen has been installed, run\u00a0screen -v<\/code>\u00a0and you will see something similar to\u00a0Screen version 4.02.01 (GNU) 28-Apr-14<\/code>. You can also run\u00a0which screen<\/code>\u00a0and it will show\u00a0\/usr\/bin\/screen<\/code>.<\/p>\n

Usage<\/h3>\n

Basic Sessions<\/h4>\n

To create a new screen session, run the command\u00a0screen<\/code>. You can also assign a name to your session by running\u00a0screen -S sessionname<\/code>\u00a0replacing\u00a0sessionname<\/code>\u00a0with a name that you wish to have for your screen session. When you do, you may get greeted with a license page. Press “Return” or “Enter” to continue onward.<\/p>\n

You will return back to your shell prompt as if nothing happened, but to be sure that you are within your screen session, press\u00a0CTRL + A<\/strong>, followed by\u00a0D<\/strong>\u00a0and shortly after. Upon successfully detaching from screen, you will get a message within your terminal showing something similar to\u00a0[detached from 5747.pts-17.localhost]<\/code>. To resume your session, type\u00a0screen -r<\/code>. If you included a session name, type\u00a0screen -r sessionname<\/code>\u00a0replacing\u00a0sessionname<\/code>\u00a0with the name of your session. Note that once you resume a screen session, you will have to detach from it.<\/p>\n

You can start a screen session by also running an application. This can be done by executing\u00a0screen \/path\/to\/application<\/code>. This will create a new session and spawn the process within it.<\/p>\n

Windows<\/h4>\n

While within a screen session, you can create a new window by pressing\u00a0CTRL + A<\/strong>, then\u00a0C<\/strong>. Your old window will remain active and you can perform other tasks. To switch between windows, press\u00a0CTRL + A<\/strong>, then\u00a0N<\/strong>\u00a0(for the next window) or\u00a0CTRL + A<\/strong>, then\u00a0P<\/strong>\u00a0(For the previous window).<\/p>\n

Help Display<\/h4>\n

Within your session, press\u00a0CTRL + A<\/strong>, then\u00a0?<\/strong>\u00a0and it will display key bindings that you can use within your screen session. This is a great way to learn about the various features that your version of screen offers.<\/p>\n

Terminating screen<\/h4>\n

When you wish to terminate your screen, type\u00a0exit<\/code>. This will end your current session. Alternatively, you can gracefully terminate a screen session with\u00a0CTRL + A<\/strong>\u00a0then\u00a0\\<\/strong>. If you have used screen to run a program, then you can press\u00a0CTRL + C<\/strong>. When the program exits, the screen session will end.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[242,247],"manual_kb_tag":[444],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2887"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2887"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2887\/revisions"}],"predecessor-version":[{"id":2888,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2887\/revisions\/2888"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2887"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2887"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}