• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Using Screen on Ubuntu 14.04

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
76
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Installation of Screen
  2. Usage
    1. Basic Sessions
    2. Windows
    3. Help Display
    4. Terminating screen
  3. Want to contribute?


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).

Installation of Screen

Install screen by running the following command:

apt-get install screen

To verify that screen has been installed, run screen -v and you will see something similar to Screen version 4.02.01 (GNU) 28-Apr-14. You can also run which screen and it will show /usr/bin/screen.

Usage

Basic Sessions

To create a new screen session, run the command screen. You can also assign a name to your session by running screen -S sessionname replacing sessionname with 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.

You will return back to your shell prompt as if nothing happened, but to be sure that you are within your screen session, press CTRL + A, followed by D and shortly after. Upon successfully detaching from screen, you will get a message within your terminal showing something similar to [detached from 5747.pts-17.localhost]. To resume your session, type screen -r. If you included a session name, type screen -r sessionname replacing sessionname with the name of your session. Note that once you resume a screen session, you will have to detach from it.

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

Windows

While within a screen session, you can create a new window by pressing CTRL + A, then C. Your old window will remain active and you can perform other tasks. To switch between windows, press CTRL + A, then N (for the next window) or CTRL + A, then P (For the previous window).

Help Display

Within your session, press CTRL + A, then ? and 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.

Terminating screen

When you wish to terminate your screen, type exit. This will end your current session. Alternatively, you can gracefully terminate a screen session with CTRL + A then /. If you have used screen to run a program, then you can press CTRL + C. When the program exits, the screen session will end.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

Setting Up Git on Ubuntu 14.04

Next Post

Enabling mod_evasive on Apache

Next Post

Enabling mod_evasive on Apache

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet