Linux命令(IT)

ls  查看当前目录下文件

cd 指定目录

sftp zygf@xxx.xxx.xxx.xxx  进行登录zygf用户

sftp命令行登录过程:

      ① sftp   xxx.xxx.xxx.xxx   登录(默认root用户),若指定用户 sftp zygf@xxx.xxx.xxx.xxx  进行登录(zygf为用户名)

      ② 登录成功后,会提示输入 密码

      ③  然后,可进入目录, ls 查看目录下内容

      ④  cd 切换目录,get 获取文件, put 上传文件

      ⑤  quit /  bye / exit  退出sftp

 

diff[参数][文件1或目录1][文件2或目录2]

 

例:[root@localhost test3]diff log2014.log log2013.log

 

[root@localhost test3]diff log2013.log log2014.log  -y -W 50并排格式输出

 

 

 

posted @ 2019-01-08 10:29  怎么著都不成  阅读(541)  评论(0编辑  收藏  举报