Linux 使用 diff 分栏对比文本差异
首先看一下帮助文档: $ diff --help 用法:diff [选项]... 文件列表 逐行比较<各文件>。 长选项的必需参数也是相应短选项的必需参数。 --normal 以...
首先看一下帮助文档: $ diff --help 用法:diff [选项]... 文件列表 逐行比较<各文件>。 长选项的必需参数也是相应短选项的必需参数。 --normal 以...
有时会需要使用 grep 做多关键词匹配,这里给出集中方法,简单记录: grep 'word1\|word2\|word3' /path/to/file ### Search all text files ### $ grep 'word*' *.txt ### Search all python files for 'wordA' or 'wordB' ### $ grep 'wordA*'\''wordB' *.py $ grep -E 'word1|word2' *.doc $ grep -e string1 -e string2 *.pl $...
记录群晖 Docker 配置和重启....
记录一次简单 Dos 攻击方法,提升网络安全意识....
通过扫描以下目录获取物理节点所有 USB 设备: /sys/bus/usb/devices/usb* /sys/bus/usb/devices/usb*/$busnum-* 从该文件系统收集某一个设备的主要信息如下: { "busnum": 1, "class": 0, "devnum": 2, "level": 1, "manufacturer": "QEMU", "port": 0, "prodid": "0001", "product": "QEMU USB Tablet", "speed": "12", "usbpath": "1", "vendid": "0627" } 文...