使用sftp从获取 linux 下的文档到windows

简介:
sftp> help
Available commands:
ascii                          Set transfer mode to ASCII
binary                         Set transfer mode to binary
cd path                        Change remote directory to 'path'
lcd path                       Change local directory to 'path'
detail remote-path             Display system information about remote
                                 file or folder
ldetail local-path             Display system information about local
                                 file or folder
chgrp group path               Change group of file 'path' to 'group'
chmod mode path                Change permissions of file 'path' to 'mode'
chown owner path               Change owner of file 'path' to 'owner'
exit                           Quit sftp
help                           Display this help text
include filename               Include commands from 'filename'
                                 Alternate: < filename
get [-a | -b] remote-path      Download file
                                 force ascii (-a) or binary (-b) mode
ln [-s] existingpath linkpath  Hardlink / symlink remote file
ls [options] [path]            Display remote directory listing
lls [options] [path]           Display local directory listing
mkdir path                     Create remote directory
lmkdir path                    Create local directory
mv oldpath newpath             Move remote file
lmv oldpath newpath            Move local file
open [user@]host[:port]        Connect to remote host
put [-a | -b] local-path       Upload file
                                 force ascii (-a) or binary (-b) mode
pwd                            Display remote working directory
lpwd                           Print local working directory
quit                           Quit sftp
rename oldname newname         Rename remote file
lrename oldname newname        Rename local file
rmdir path                     Remove remote directory
lrmdir path                    Remove local directory
rm path                        Delete remote file
lrm path                       Delete local file
su username                    Substitutes the current user
                                 This is only supported with VShell for
                                 Windows 3.5 or later.
type [transfer-mode]           Display or set file transfer mode
view remote-path               Download and open file
version                        Display protocol version
sftp> ls
anaconda-ks.cfg       install.log           install.log.syslog
oradiag_root          proc_mon_del.prc
sftp> lls
desktop.ini           FFOutput              login.sql
My Music              My Pictures           My Videos
My WangWang           Tencent Files         酷6视频
sftp> lcd d:\
sftp> lls
$RECYCLE.BIN          10704events.txt       big_table.sql
bin                   bin.rar               bt.sql
bt.txt                chunk_shared_pool.txt DFVKR-PC
Downloads             dump                  emppar.txt
events10704.txt       expimptest.txt        find_mem_usage.txt
full_database.log     full_db.log           gettrace.sql
hash_join.txt         hj.txt                hj2.txt
imp_yang.log          lib                   MediaID.bin
mem.txt               memory_dynamic_components.txt
oracle                outline.txt           PLSQLDev7.0[1].pdf
prameter.sql          Program Files         scott.sql
software              System Volume Information
transferingOptimizerStatistics.txt          yang.log
yangtab.txt           ZZZZ                  在线重建索引
实践spool 文件            新建文本文档.txt
sftp> get /u01/app/oracle/diag/rdbms/rac/rac1/trace/rac1_ora_11801.trc
Downloading rac1_ora_11801.trc from /u01/app/oracle/diag/rdbms/rac/rac1/trace/rac1_ora_11801.trc
  100% 335213KB  11559KB/s 00:00:29     
/u01/app/oracle/diag/rdbms/rac/rac1/trace/rac1_ora_11801.trc: 343258473 bytes transferred in 29 seconds (11559 KB/s)
sftp> lls
$RECYCLE.BIN          10704events.txt       big_table.sql
bin                   bin.rar               bt.sql
bt.txt                chunk_shared_pool.txt DFVKR-PC
Downloads             dump                  emppar.txt
events10704.txt       expimptest.txt        find_mem_usage.txt
full_database.log     full_db.log           gettrace.sql
hash_join.txt         hj.txt                hj2.txt
imp_yang.log          lib                   MediaID.bin
mem.txt               memory_dynamic_components.txt
oracle                outline.txt           PLSQLDev7.0[1].pdf
prameter.sql          Program Files         rac1_ora_11801.trc
scott.sql             software              System Volume Information
transferingOptimizerStatistics.txt          yang.log
yangtab.txt           ZZZZ                  在线重建索引
实践spool 文件            新建文本文档.txt
sftp>  
相关文章
|
1天前
|
Ubuntu 安全 Linux
|
26天前
|
Java Linux
java读取linux服务器下某文档的内容
java读取linux服务器下某文档的内容
32 3
java读取linux服务器下某文档的内容
|
13天前
|
Linux 编译器 C语言
Linux c/c++之多文档编译
这篇文章介绍了在Linux操作系统下使用gcc编译器进行C/C++多文件编译的方法和步骤。
18 0
Linux c/c++之多文档编译
|
17天前
|
存储 Linux 编译器
cmake的单目录和多目录的使用(Linux和Windows)
本文介绍了在Windows和Linux平台上使用CMake构建单目录和多目录项目的步骤,包括如何配置CMakeLists.txt文件以及如何生成和使用可执行文件、库文件。
14 2
|
11天前
|
关系型数据库 MySQL Linux
Navicat 连接 Windows、Linux系统下的MySQL 各种错误,修改密码。
使用Navicat连接Windows和Linux系统下的MySQL时可能遇到的四种错误及其解决方法,包括错误代码2003、1045和2013,以及如何修改MySQL密码。
96 0
|
1月前
|
Linux 开发者 Python
从Windows到Linux,Python系统调用如何让代码飞翔🚀
【9月更文挑战第10天】在编程领域,跨越不同操作系统的障碍是常见挑战。Python凭借其“编写一次,到处运行”的理念,显著简化了这一过程。通过os、subprocess、shutil等标准库模块,Python提供了统一的接口,自动处理底层差异,使代码在Windows和Linux上无缝运行。例如,`open`函数在不同系统中以相同方式操作文件,而`subprocess`模块则能一致地执行系统命令。此外,第三方库如psutil进一步增强了跨平台能力,使开发者能够轻松编写高效且易维护的代码。借助Python的强大系统调用功能,跨平台编程变得简单高效。
33 0
|
1月前
|
Linux 网络虚拟化 Windows
ccproxy windows上用的代理软件(类似linux系统上的squid)
ccproxy windows上用的代理软件(类似linux系统上的squid)
|
2月前
|
Linux
Linux命令行文档查看cat、less、more、head、tail和图片查看
Linux命令行文档查看cat、less、more、head、tail和图片查看
50 0
|
2月前
|
Linux Windows Python
最新 Windows\Linux 后台运行程序注解
本文介绍了在Windows和Linux系统后台运行程序的方法,包括Linux系统中使用nohup命令和ps命令查看进程,以及Windows系统中通过编写bat文件和使用PowerShell启动隐藏窗口的程序,确保即使退出命令行界面程序也继续在后台运行。