分享一个运维过程中的用的命令集合

代码有点多放在git上面了

Install:
    go install -ldflags "-s -w" github.com/czxichen/wstools
Wstools Usage:
    wstools [arguments]
The commands are:
    fileserver  用过http协议传输共享文件
    mail        通过smtp协议发送邮件
    compress    压缩解压文件
    net         检测远程地址或端口是否通
    find        根据条件查找文件
    md5         计算指定路径的md5值,可以是目录
    compare     对文件或者目录经进行比较
    fsnotify    可以用来监控文件或者目录的变化
    ssh         使用ssh协议群发命令或发送文件
    ftp         使用ftp协议下载或上传文件

Use "wstools help [command]" for more information about a command.

Example:
    wstools fileserver -d command  -l 192.168.0.2:8080 -i -a
    wstools mail -u root -p 123456 -F czxichen@163.com -T czxichen@163.com
    wstools compress -x -p tmp.zip -o ./
    wstools net -a telnet -H 127.0.0.1:80,www.baidu.com:80
    wstools find -d "./" -b 20160101 -l 10 -s ".go"
    wstools md5 -d "./" -e ".exe"
    wstools compare -s command -d command_new -c diff
    wstools fsnotify -d tools -s scripts.bat
    wstools ssh -u root -p 123456 -H 192.168.1.2:22 -s main.go -d /tmp
    wstools ftp -l main.go -r /mnt/main.go -g false

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值