• SFTP 命令帮助


    sftp> lpwd
    Local working directory: c:\
    sftp> ls -alt
    drwx------ 2 demo users          0 Feb 22 16:37 ..
    drwx------ 2 demo users          0 Feb 22 16:37 .
    -rw------- 1 demo users        405 Dec 17  2021 readme.txt
    drwx------ 2 demo users          0 Oct 19  2020 pub
    sftp> get readme.txt d:\sftp_readme.txt
    Fetching /readme.txt to d:/sftp_readme.txt
    /readme.txt                                                                           100%  405     0.6KB/s   00:00
    sftp> put d:\test.txt sftptest.txt
    Uploading d:/test.txt to /sftptest.txt
    remote open("/sftptest.txt"): Permission denied
    sftp>

    1. ls [-1afhlnrSt] [path]
    2. Display a remote directory listing of either path or the current
    3. directory if path is not specified. path may contain glob(3)
    4. characters and may match multiple files.
    5. The following flags are recognized and alter the behaviour of ls
    6. accordingly:
    7. -1 Produce single columnar output.
    8. -a List files beginning with a dot (‘.’).
    9. -f Do not sort the listing. The default sort order is lexi-
    10. cographical.
    11. -h When used with a long format option, use unit suffixes:
    12. Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
    13. and Exabyte in order to reduce the number of digits to
    14. four or fewer using powers of 2 for sizes (K=1024,
    15. M=1048576, etc.).
    16. -l Display additional details including permissions and own-
    17. ership information.
    18. -n Produce a long listing with user and group information
    19. presented numerically.
    20. -r Reverse the sort order of the listing.
    21. -S Sort the listing by file size.

    sftp> help
    Available commands:
    bye                                Quit sftp
    cd path                            Change remote directory to 'path'
    chgrp grp path                     Change group of file 'path' to 'grp'
    chmod mode path                    Change permissions of file 'path' to 'mode'
    chown own path                     Change owner of file 'path' to 'own'
    df [-hi] [path]                    Display statistics for current directory or
                                       filesystem containing 'path'
    exit                               Quit sftp
    get [-afPpRr] remote [local]       Download file
    reget [-fPpRr] remote [local]      Resume download file
    reput [-fPpRr] [local] remote      Resume upload file
    help                               Display this help text
    lcd path                           Change local directory to 'path'
    lls [ls-options [path]]            Display local directory listing
    lmkdir path                        Create local directory
    ln [-s] oldpath newpath            Link remote file (-s for symlink)
    lpwd                               Print local working directory
    ls [-1afhlnrSt] [path]             Display remote directory listing
    lumask umask                       Set local umask to 'umask'
    mkdir path                         Create remote directory
    progress                           Toggle display of progress meter
    put [-afPpRr] local [remote]       Upload file
    pwd                                Display remote working directory
    quit                               Quit sftp
    rename oldpath newpath             Rename remote file
    rm path                            Delete remote file
    rmdir path                         Remove remote directory
    symlink oldpath newpath            Symlink remote file
    version                            Show SFTP version
    !command                           Execute 'command' in local shell
    !                                  Escape to local shell
    ?                                  Synonym for help 

  • 相关阅读:
    JavaScript 的发展历史
    2024前端面试每日一更——简述MVVM?
    中国招标投标协会李小林一行到访北京筑龙座谈交流
    k8s 搭建基于session模式的flink集群
    2.Asp.net Core使用Redis-StackExchange.Redis操作
    使用gin 代理 web网页
    elasticsearch-head浏览器(google)插件安装使用
    LeetBook 刷题笔记:链表(四)
    关系数据库的原子性
    电路分析中的函数介绍
  • 原文地址:https://blog.csdn.net/dwjnhkbc123/article/details/126446055