博客
关于我
linux 上传下载文件命令
阅读量:791 次
发布时间:2023-02-01

本文共 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.

    转载地址:http://cpwfk.baihongyu.com/

    你可能感兴趣的文章
    linux rsync配置文件参数详解
    查看>>
    Linux rsyslog 转存至日志服务器
    查看>>
    linux scp命令参数及用法详解--linux远程复制拷贝命令使用实例【转】
    查看>>
    Linux script命令记录(数据库)操作步骤
    查看>>
    linux sed 批量替换字符串
    查看>>
    linux sed命令 批量替换文件内容的方法
    查看>>
    Linux sed命令增删改查 附代码
    查看>>
    linux sed命令详解
    查看>>
    linux sed命令详解
    查看>>
    Linux Shell Shock漏洞利用和实战
    查看>>
    linux shell wc 命令
    查看>>
    linux shell 的 for 循环
    查看>>
    linux shell 编程 9 脚本中调用脚本
    查看>>
    Linux shell (ssh批量配置免秘)读取配置文件,进行远程操作
    查看>>
    Linux Shell——流程控制
    查看>>
    Linux Shell之三 高级变量及字符串
    查看>>
    Linux Shell编程新手入门教程(六)
    查看>>
    Linux Shell编程最重要的十个核心概念,零基础入门到精通,收藏这一篇就够了
    查看>>
    Linux Shell编程(19)——测试与分支
    查看>>
    Linux Shell脚本入门--grep命令详解
    查看>>