Operations 2 min read

Install and Use lrzsz for Drag‑and‑Drop File Transfer on Linux

This guide shows how to install the lrzsz utility on a Linux server and use its rz and sz commands—or the built‑in drag‑and‑drop feature—to upload single or multiple files and download files or whole directories efficiently.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Install and Use lrzsz for Drag‑and‑Drop File Transfer on Linux

lrzsz is a Linux utility that can replace FTP for uploading and downloading files, supporting both command‑line operations (rz/sz) and a drag‑and‑drop plugin for graphical terminals.

Installation

yum -y install lrzsz

Uploading Files

You can drag files directly into the terminal window to upload them to the current directory, or use the rz command for a manual upload. The command opens a file‑selection dialog in tools like Xshell.

rz

Downloading Files

Use the sz command followed by the filename to download a single file. A save‑file dialog will appear.

sz rumenz.txt

Downloading Multiple Files

Specify several filenames in one sz command to download them together.

sz rumenz.txt rumenz1.txt

Downloading All Files in a Directory (Excluding Subfolders)

Use a wildcard pattern to download every file in a directory while skipping subdirectories.

sz rumenz/*
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

command-linefile transferlrzszrzsz
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.