zoukankan      html  css  js  c++  java
  • scp

    1、mac上传文件到Linux服务器

    scp 文件名 用户名@服务器ip:目标路径
    如:scp /Users/test/testFile test@www.linuxidc.com:/test/

    2、mac上传文件夹到Linux服务器,与上传文件相比多加了-r

    scp -r 文件夹目录 用户名@服务器ip:目标路径
    如:scp -r /Users/test/testFolder test@www.linuxidc.com:/test/

    3、Linux服务器下载文件到mac

    scp 用户名@服务器ip:文件路径 目标路径
    如:scp test@www.linuxidc.com:/test/testFile /Users/test/

    4、Linux服务器下载文件夹到mac,与下载文件相比多加了-r

    scp -r 用户名@服务器ip:文件路径 目标路径
    如:scp -r test@www.linuxidc.com:/test/testFolder /Users/test/
  • 相关阅读:
    面向对象之继承
    面向对象之封装
    面向对象编程
    Centos7.7镜像源配置
    Centos7环境配置
    多表查询v1
    多表查询
    库相关操作
    数据库初识
    数据相关操作
  • 原文地址:https://www.cnblogs.com/yintingting/p/7348559.html
Copyright © 2011-2022 走看看