# windows命令行查找字符串和文件
for /r 目录名 %i in (匹配模式1,匹配模式2) do @echo %i
# 通过IP获取物理地址
http://ip-api.com/json/ip?lang=zh-CN
# windows查询IP地址
wmic nicconfig get ipaddress
# windows查询mac地址
wmic nic where netconnectionid!=null get macaddress
# windows查询cpu序列号
wmic cpu get processorid
# windows查询主板序列号
wmic baseboard get serialnumber
# linux查询IP地址
ip address | grep inet | awk 'NR==3{print $2}' | awk -F '/' '{print $1}'
# linux查询mac地址
cat /sys/class/net/eth0/address
# linux查询cpu序列号
dmidecode -t 4 | grep ID | awk -F ': ' '{print $2}'
# linux查询主板序列号
dmidecode -s system-serial-number