ls -al .functions*
-rw-r--r-- 1 root root 471040 Mar 2 10:01 .functions.php.swo
-rw-r--r-- 1 root root 438272 Mar 2 09:57 .functions.php.swp
Run Code Online (Sandbox Code Playgroud)
*可以匹配.php.swo,.php.swp
为什么*不能匹配.functions.php?
ls -al *.swo
ls: cannot access '*.swo': No such file or directory
ls -al *swo
ls: cannot access '*swo': No such file or directory
Run Code Online (Sandbox Code Playgroud) 在网页 iptables 日志中
/etc/rsyslog.d/iptables.conf使用以下内容创建:Run Code Online (Sandbox Code Playgroud):msg, startswith, "iptables: " -/var/log/iptables.log & ~
第二行表示丢弃前一行中匹配的消息。
为什么& ~在 iptables 配置中意味着“丢弃在前一行中匹配的消息”?