centos7 中使用sftp窗口的get命令下载文件到Windows,请问下载到了Windows的哪个目录????
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7 中使用sftp窗口的get命令下载文件到Windows,请问下载到了Windows的哪个目录????相关的知识,希望对你有一定的参考价值。
参考技术A 应该是 c:\users\your_user_name和你的 用户名有关系的那个
去 看看 参考技术B 默认在下载目录 但是可以自定义 lcd e: 就会切到e盘 ,下载到e盘 想了解更多可以看看《linux就该这么学》
sftp使用方法
SecureCRT 按下 ALT+P 或者“文件——连接SFTP会话”,打开会话窗口。
1、help命令:显示帮助
2、pwd:查询linux主机所在目录
3、lpwd:查询本地目录
4、ls:查询linux主机所在目录文件
5、lls:查询本地目录文件
6、cd:更改linux目录
7、lcd:更改本地目录
8、get:从linux下载文件到本地
9、put:从本地上传
10、exit
***********************************************************************************
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 [-r][-a | -b] remote-path Download file
-r downloads directory recursively
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 [[email protected]]host[:port] Connect to remote host
put [-r][-a | -b] local-path Upload file
-r uploads directory recursively
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>
***********************************************************************************
本文出自 “风之谷” 博客,请务必保留此出处http://chenchunjia.blog.51cto.com/1878790/1945698
以上是关于centos7 中使用sftp窗口的get命令下载文件到Windows,请问下载到了Windows的哪个目录????的主要内容,如果未能解决你的问题,请参考以下文章