小编kon*_*qui的帖子

是否有使用上一个命令(不是 cd、ls 或 echo)的参数重新运行命令的快捷方式

使用以下内容搜索传递的日志文件:

cat /path/to/logfile | grep -iEw 'some-ip-address-here|correspondig-mac-adress-here'

这给了我到目前为止所有通过的日志行,所以我可以看到已经发生了什么。现在,我也想看看发生了什么事情,所以我需要换cattail -f给我这个:

tail -f /path/to/logfile | grep -iEw 'some-ip-address-here|correspondig-mac-adress-here'

command-line bash command-history

2
推荐指数
1
解决办法
124
查看次数

标签 统计

bash ×1

command-history ×1

command-line ×1