摘要:
Operation mode: -A --catenate concatenate 追加模式, 不能是压缩的 tar -A a.tar -vf b.tar 追加a.tar到b.tar后面 -c --create 创建模式, 目录默认递归, --no-recursion不对目录递归 tar cf c. 阅读全文
摘要:
bash [options] [command_string | file] -c If then -c option is present, then commands are read from the first non-option argument command_string. If t 阅读全文
摘要:
默认网关: ip route show 0.0.0.0/0 | grep -oP 'via \K\S+' f 默认网卡: awk '$2==00000000{print $1}' /proc/net/route d 默认出口IP: ip route get 1.1.1.1 | grep -oP 's 阅读全文
摘要:
ip -details link show type在第三行, loopback 物理 wifi等没有type ip -details -json link show | jq --join-output ' .[] | if .ifname != null then .ifname, " ", i 阅读全文
摘要:
ip link add dev dummy0 type dummy 查看dummy的ARGS 添加IP ip addr add 192.168.8.99 dev dummy0 dummy 接口的工作方式和 loopback 接口类似,但是你可以创建任意多的 dummy 接口。它提供路由数据包的功能, 阅读全文
摘要:
remand = 'abaxyzzyxf' def long_palindrome(s: str) -> str: longest = '' for i in range(len(s)): for j in range(i, len(s)): substr = s[i:j + 1] if is_pa 阅读全文