Skip to content

Linux screen Guide

Mattscreative edited this page Dec 5, 2025 · 2 revisions

Linux screen Guide

Complete beginner-friendly guide to screen on Linux, covering Arch Linux, CachyOS, and other distributions including terminal multiplexing, session management, and persistent terminals.


Table of Contents

  1. screen Installation
  2. screen Basics
  3. Session Management
  4. Window Management
  5. Troubleshooting

screen Installation

Install screen

Arch/CachyOS:

# Install screen
sudo pacman -S screen

Debian/Ubuntu:

sudo apt install screen

Fedora:

sudo dnf install screen

screen Basics

Start screen

Basic usage:

# Start screen
screen

# Opens new screen session

Detach Session

Detach:

# Detach session
# Press: Ctrl+A then D

# Session continues running

Session Management

List Sessions

Show sessions:

# List sessions
screen -ls

# Shows all screen sessions

Reattach Session

Reconnect:

# Reattach session
screen -r

# Reconnects to detached session

Window Management

Create Window

New window:

# In screen:
# Press: Ctrl+A then C

# Creates new window

Switch Windows

Navigate:

# In screen:
# Ctrl+A then N - Next window
# Ctrl+A then P - Previous window
# Ctrl+A then 0-9 - Switch to window number

Troubleshooting

screen Not Found

Check installation:

# Check screen
which screen

# Install if missing
sudo pacman -S screen

Summary

This guide covered screen usage, terminal multiplexing, and session management for Arch Linux, CachyOS, and other distributions.


Next Steps


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.

Clone this wiki locally