zoukankan      html  css  js  c++  java
  • scp上传文件、下载文件命令

    1、将 文件/文件夹 从远程 Ubuntu 机拷至本地(scp)

    $scp -r username@192.168.0.1:/home/username/remotefile.txt

    2、将 文件/文件夹 从本地拷至远程 Ubuntu 机(scp)
    $scp -r localfile.txt username@192.168.0.1:/home/username/

    scp 命令可以用来通过安全、加密的连接在机器间传输文件。它与 rcp 相似。

    • 把本地文件传输给远程系统的一般语法是:

      scp localfile username@tohostname:/newfilename

      localfile 指定源文件,username@tohostname:/newfilename 指定目标文件。

    • 要把本地文件 shadowman 传送到你在 penguin.example.net 上的账号内,在 shell 提示下键入(把 username 替换成你的用户名):

      scp shadowman username@penguin.example.net:/home/username

      这会把本地文件 shadowman 传输给 penguin.example.net 上的 /home/username/shadowman 文件。

    • 把远程文件传输给本地系统的一般语法是:

      scp username@tohostname:/remotefile /newlocalfile

      remotefile 指定源文件,newlocalfile 指定目标文件。

    • 源文件可以由多个文件组成。譬如,要把目录 /downloads 的内容传输到远程机器 penguin.example.net 上现存的 uploads 目录,在 shell 提示下键入下列命令:

      scp /downloads/* username@penguin.example.net:/uploads/

    链接:https://blog.csdn.net/u013381011/article/details/78310903

    链接:https://blog.csdn.net/u013381011/article/details/78310903

  • 相关阅读:
    HDU-2502-月之数
    C语言的位运算的优势
    HDU-1026-Ignatius and the Princess I
    HDU-1015-Safecracker
    HDU-1398-Square Coins
    HDU-1028-Ignatius and the Princess III
    背包的硬币问题
    HDU-1527-取石子游戏
    HDU-1996-汉诺塔VI
    css中的选择器
  • 原文地址:https://www.cnblogs.com/h694879357/p/15846432.html
Copyright © 2011-2022 走看看