linux 上传下载文件命令
发布日期:2025-04-06 08:58:21 浏览次数:7 分类:精选文章

本文共 1281 字,大约阅读时间需要 4 分钟。

For Linux system users, SSH is often the primary means to securely transfer files between systems. Of the many tools available, scp is one of the most user-friendly and efficient. To use scp effectively, you can follow these steps:

  • Run the SCP Command:

    scp [-P] [username]@[ip]:[/file/path] /[local/file/path]
    • Replace username with your Linux username.
    • Substitute ip with the target server's IP address.
    • Enter the full path of the file on the Linux server.
    • Provide the destination file path on your local machine.
  • Using XShell for Cross-Platform File Transfer:XShell is a versatile tool that allows you to manage and transfer files between Linux and Windows servers seamlessly. Once installed, you can:

    • Upload Files to Server: Drag and drop files into XShell's interface or use the built-in file explorer.
    • Download Files from Server: Select files and save them to your local machine's preferred directory.
  • For transferring files between systems, both sz (for sending files to the server) and rz (for retrieving files from the server) are reliable solutions. When using these tools:

    • Send Files to Local Machine:
      sz filename
    • Download Files from Server:
      rz

      After executing rz, a pop-up window will appear, allowing you to select and upload files from your local machine to the server.

    上一篇:linux 上删除docker 虚悬镜像
    下一篇:Linux 上传下载 rz 与sz

    发表评论

    最新留言

    感谢大佬
    [***.8.128.20]2025年05月03日 03时05分05秒