open zlb@202.116.112.35
lcd
cd
ls 远程目录
!dir 查看本地目录
pwd
lpwd
put [-r] get [-r]
mput mget
rm del
mkdir mv
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
文件名中有空格时使用双引号
如”space name.txt”
使用通配符
* 代替任何字串
? 替代一个字母
[abc] 在a b c范围内替代一个字母
[a-z] 在a到z范围内替代一个字母
[^abc] 替代一个字母,不包括a b cmatches a single character that is not a, b, or c.
[-a] 代表连接号(-)
[a^] 代表脱字符号(^)
/ 放在上面的所有通配符之前,以取消其(通配符)涵义
(文件夹名称不支持通配符)