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.
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 lrzszUploading 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.
rzDownloading Files
Use the sz command followed by the filename to download a single file. A save‑file dialog will appear.
sz rumenz.txtDownloading Multiple Files
Specify several filenames in one sz command to download them together.
sz rumenz.txt rumenz1.txtDownloading All Files in a Directory (Excluding Subfolders)
Use a wildcard pattern to download every file in a directory while skipping subdirectories.
sz rumenz/*Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
