TechBuzzPro

Bye screen and wget hello tmux and curl?

· 5 min read · Windows & PC

In this article
  1. Background: The Old Guard
  2. Why tmux and curl Are Winning
  3. How tmux Replaces screen
  4. How curl Replaces wget
  5. When to Keep screen and wget
  6. Common Problems and How to Solve Them
  7. Comparisons: tmux vs screen, curl vs wget
  8. Frequently Asked Questions
  9. Making the Switch Smoothly

This article explains why many terminal users are replacing screen with tmux and wget with curl, and how to make the switch. You'll learn the key differences, when each tool still makes sense, and practical examples for daily use.

Background: The Old Guard

screen and wget have been Unix staples for decades. screen, released in 1987, is a terminal multiplexer that lets you run multiple sessions inside one terminal, detach and reattach them, and keep processes alive after you log out. wget, from 1996, is a non-interactive downloader known for recursive downloads and mirroring websites. Both are preinstalled on most Linux distributions and macOS, which made them the default choice for generations of sysadmins and developers.

Why tmux and curl Are Winning

tmux (2007) and curl (1997) offer modern features that address the limitations of their predecessors. tmux provides a client-server architecture, scriptable status bar, vertical and horizontal splits, and a more consistent configuration syntax. curl supports dozens of protocols (HTTP, FTP, SFTP, SMTP, etc.), has a simpler syntax for single-file transfers, and is now the default downloader in many environments, including Windows 10+ and macOS.

The shift is also cultural: new tutorials, CI/CD scripts, and cloud-native documentation almost always show tmux and curl commands. If you follow modern guides, you'll see these tools far more often than the older ones.

How tmux Replaces screen

Both tools solve the same core problem: keeping a terminal session alive and letting you switch between tasks. But tmux feels more like a modern application. Here are the everyday commands you'll use:

  • Start a session: tmux new -s work (vs. screen -S work)
  • Detach: Ctrl-b d (vs. Ctrl-a d)
  • Reattach: tmux attach -t work (vs. screen -r work)
  • Split horizontally: Ctrl-b % (vs. Ctrl-a |)
  • Split vertically: Ctrl-b " (vs. Ctrl-a S)
  • List sessions: tmux ls (vs. screen -ls)

The prefix key is the biggest adjustment: screen uses Ctrl-a, tmux uses Ctrl-b. You can change it in ~/.tmux.conf if you're used to the old one.

How curl Replaces wget

The most common task is downloading a single file. In wget you'd write:

wget https://example.com/file.zip

In curl you need to add -O to save with the remote filename:

curl -O https://example.com/file.zip

Without -O, curl prints the file to stdout. For a custom output name, use -o:

curl -o myfile.zip https://example.com/file.zip

For resuming an interrupted download, wget -c becomes curl -C -. For following redirects, wget does it by default, but curl needs -L. These small flags are the main source of confusion for newcomers.

When to Keep screen and wget

There are still good reasons to stick with the older tools:

  • Already installed: If you're on a minimal system without tmux or curl and no package manager access, screen and wget are your only options.
  • Recursive mirroring: wget -r is still the simplest way to mirror a website. curl doesn't have a built-in recursive mode; you'd need to write a loop or use a separate tool.
  • Scripting simplicity: wget is often easier in shell scripts because it doesn't require flags for basic downloads.
  • Screen's scrollback: Some users prefer screen's copy-paste behavior, though tmux has similar features with different keybindings.

Common Problems and How to Solve Them

When switching, you'll hit a few typical issues:

  1. Forgot -L in curl: You get a 301/302 HTML page instead of the file. Fix: add -L to follow redirects.
  2. tmux session not found: You ran tmux attach without a name, but multiple sessions exist. Use tmux ls to list, then attach with -t.
  3. Prefix key confusion: You're typing Ctrl-a in tmux and nothing happens. Remember it's Ctrl-b unless you've changed it.
  4. curl downloads to stdout: You see binary garbage in your terminal. Always use -o or -O.
  5. wget recursive downloads too much: wget -r can pull an entire site, including unwanted directories. Use --reject or -np (no parent) to limit.

Comparisons: tmux vs screen, curl vs wget

Here's a quick side-by-side for the most common tasks:

  • Detach and reattach: Both do it well. tmux has better session management (rename, kill, list with preview).
  • Split panes: tmux is more intuitive, with dynamic resizing and easy zoom (Ctrl-b z). screen splits are clunkier.
  • Scripting: tmux has a send-keys command that's great for automation. screen has -X but it's less flexible.
  • Download speed: Both curl and wget are fast. curl supports parallel transfers with -Z (but not in the basic version).
  • Protocol support: curl wins hands-down, supporting everything from SMB to LDAP. wget is HTTP/HTTPS/FTP only.

Frequently Asked Questions

Is tmux faster than screen?

In terms of raw performance, both are negligible. The perceived speed difference comes from tmux's rendering and scrollback handling, which feels smoother on modern terminals.

Can I use curl to download an entire website?

Not directly. curl is designed for single transfers. For mirroring, use wget -r or a dedicated tool like httrack. You could write a script with curl and parse links, but it's not built-in.

Do I need to uninstall screen or wget?

No. They coexist peacefully. You can keep them for compatibility and use tmux and curl for new work. Many systems have all four installed.

How do I change tmux's prefix key to Ctrl-a?

Add this to ~/.tmux.conf and reload with tmux source-file ~/.tmux.conf:

set -g prefix C-a
unbind C-b
bind C-a send-prefix

Why does curl not save the file by default?

Because curl is designed to output to stdout by default, making it easy to pipe output to other commands. The -O flag is a deliberate choice to keep the tool composable.

Is wget still maintained?

Yes, wget is still maintained, but development is slower than curl. curl gets more frequent updates and new protocol support.

Making the Switch Smoothly

To avoid frustration, start by using tmux and curl for simple tasks, and keep screen and wget as fallbacks. Create aliases in your shell to ease the transition:

alias s='screen'
alias t='tmux'
alias w='wget'
alias c='curl'

Then gradually replace your muscle memory. Within a week, the new commands will feel natural.