之前一直用 FlashFXP 连接 Linux 系统,并上传文件。因之前把 SecureCRT 换成了 PuTTY,所以这个也一并换了,用了 psftp。和 PuTTY 算是兄弟工具,也一样小巧易用。PuTTY 不用安装,只需下载个 exe 文件就能用, psftp 也是。不过也可以下载一个整合的 installer,把这两个一起装了,还附送其他的远程工具。
psftp 连接上服务器之后,使用说明如下:
1. open hostname 连接服务器,hostname是服务器的域名或IP
2. 登录 按提示输入用户名 / 密码,即可登录成功
3. cd /.. 切换服务器目录
4. lcd F:/download 切换本地目录
5. put 上传 参数 -r :整个目录上传,put something.txt another.txt 上传并重命名
6. get 下载 参数 -r :整个目录下载,get something.txt another.txt 下载并重命名
7. 文件名中有空格时使用双引号,如”space name.txt”
8.使用通配符
* 代替任何字串
? 替代一个字母
[abc] 在a b c范围内替代一个字母
[a-z] 在a到z范围内替代一个字母
[^abc] 替代一个字母,不包括a b cmatches a single character that is not a, b, or c.
[-a] 代表连接号(-)
[a^] 代表脱字符号(^)
/ 放在上面的所有通配符之前,以取消其(通配符)涵义
(文件夹名称不支持通配符)
9. open, quit, close, help:quit是关闭PSFTP(bye和exit与quit相同),close是切断但不关闭
10. cd, pwd, lcd, lpwd
11. mget, mput, reget,reput
可以理解为Multiple get, Multiple put,用来一次下载或上传多个文件和文件夹。除了不可以重命名文件或文件夹,其它参数和get, put一样。
re是resume的简写,那么它们就是续传命令了。
12. dir, del, mkdir rmdir
dir就是ls;del是rm,但不可以删除文件夹;mkdir还是原来的意思(建立文件夹);rmdir是删除文件夹(某些服务器不允许删除非空文件夹,得现删除其中的文件才行)。
13. chmod命令
其参数u, g, o, a, +, -, r, w, x涵义分别是:
u (the owning user)文档所有者
g (members of the owning group)组成员
o (everybody else – ‘others’)其它所有人
a (‘all’, everyone)所有人
+ 加上(授予)
- 减去(剥夺)
r (permission to read the file)读
w (permission to write to the file)写
x (permission to execute the file)运行
chmod go-rwx,u+w privatefile
上面代码的涵义是剥夺组成员及其它任何人的读写运行权限,授予文件所有者写权限也(也就是私人文档)
chmod a+r public*
上面代码的涵义授予所有人读权限(也就是公开公开公开)
直接用权限数字代码也可以
chmod 640 groupfile1 groupfile2
14. mv命令:更改文件或文件夹名称,也可以使用ren, rename命令
15. !命令:在上面的命令前加上叹号!,则在本地机器操作
——
芝兰生于深谷,不以无人而不芳;君子修道立德,不为困穷而改节。
Pingback: 肉牛
Pingback: cheap wow gold
Pingback: psftp + key(ppk)的方式传输文件 | 大門
Pingback: wedding photographer split
Pingback: extra virgin olive oil istria
Pingback: www.office.com/setup
Pingback: Bandar Judi Bola Indonesia
Pingback: law & political
Pingback: colarts Diyala
Pingback: Event Managers in Hyderabad
Pingback: how to make money with a iphone
Pingback: check this site out
Pingback: best site
Pingback: teenage girl room ideas for small rooms
Pingback: اوس الخزرجي
Pingback: ADME Service
Pingback: UoDDiyala Engineering
Pingback: real estate agents
Pingback: GVK BIO New Deals
Pingback: empresa informática
Pingback: adwords guaranteed service
Pingback: 먹튀신고
Pingback: cmovieshd
Pingback: 움짤
Pingback: satta matka, satta king, satta, matka, kalyan matka
Pingback: exercice fessier
Pingback: iq coehuman *_*
Pingback: interview
Pingback: toxicokinetics in rodents
Pingback: MDR1 substrate assesment in Caco-2
Pingback: sciences diyala@
Pingback: Brand Reputation Services
Pingback: telefoonhoesjes
Pingback: blacharz łódź
Pingback: Offshoring DMPK
Pingback: gambling
Pingback: top kiwi casino sites
Pingback: 토토사이트
Pingback: Tuned2health.org
Pingback: prepaid gift balance
Pingback: anabolic steroids
Pingback: bitmex margin trading
Pingback: Digital Marketing company in Canada
Pingback: Teen Chat
Pingback: after hours dental care
Pingback: Foot Health
Pingback: junk car for cash
Pingback: International Removals Company
Pingback: invoice approval software
Pingback: best executive resume services