随笔分类 -  命令工具

摘要:1、递规与转发 FROM:https://wangjia.net/bo-blog/how-to-deny-recursion-totally-with-bind9/ 作为域名NS记录指向的DNS服务器,不同于开放给公众的DNS服务器,不需要提供本机配置域名之外的域名解析。当DNS解析的域名本机中没有 阅读全文
posted @ 2020-09-22 09:27 gelare 阅读(324) 评论(0) 推荐(0)
摘要:1、 PowerShell或CMD中运行linux命令 D:\>wsl ls -l 2、WSL可直中运行的 Windows 可执行文件 gelare@archie:~$ ipconfig.exe /all 3、从windows访问linux文件 \\wsl$ 4、WSL访问 Windows 文件 / 阅读全文
posted @ 2020-05-31 08:48 gelare 阅读(1118) 评论(0) 推荐(0)
摘要:0、nmcli device wifi 1、nmcli device wifi connect ssid password wifi_passwd ( nmcli connection add type wifi con-name wifi_name ifname interface ssid ss 阅读全文
posted @ 2020-04-17 10:04 gelare 阅读(3106) 评论(0) 推荐(0)
摘要:1、SSH隧道 ssh -L localport:remoteip:remoteport username@ip 将本地端口localport收到的报文,通过中间节点ip,转发给远端节点remoteip的端口remoteport. ssh -R remoteport:localip:localpor 阅读全文
posted @ 2020-04-07 10:02 gelare 阅读(1206) 评论(0) 推荐(0)
摘要:1、axel多线程下载,代替curl,wget(todo ..) 阅读全文
posted @ 2020-04-07 09:46 gelare 阅读(168) 评论(0) 推荐(0)
摘要:一、sed的Pattern Space与Hold Space Pattern Space相当于车间,sed把流内容在这里进行处理,Hold Space相当于仓库,加工的半成品在这里进行临时存储。g: 将hold space中的内容拷贝到pattern space中,原来pattern space里的 阅读全文
posted @ 2020-04-07 09:44 gelare 阅读(413) 评论(0) 推荐(0)
摘要:1、输出eth0的IP地址ip -4 addr show "eth0" | grep -oP '(?<=inet\s)\d+(\.\d+){3}' 2、说明-o 显示被模式匹配到的字符串。-P 支持正则表达式 (https://deerchao.cn/tutorials/regex/regex.ht 阅读全文
posted @ 2020-04-07 09:19 gelare 阅读(11940) 评论(1) 推荐(3)
摘要:rsync -P -e ssh user@ip:~/myfile.tbz2 ./ 阅读全文
posted @ 2020-04-07 09:17 gelare