lsof -nP -i4TCP:8080| grep LISTEN 老版本的命令同樣支持: lsof -nP -iTCP:PORT∣grepLISTENlsof−nP−i:PORT | grep LISTEN lsof -nP -i:PORT∣grepLISTENlsof−nP−i:PORT | grep LISTEN
其中$Port爲具體的端口號。 -n: 查看IP地址 -P:展示使用的協議,HTTP/TCP/UDP
前言: Git是由Linus大牛在一週時間內開發出來的分佈式版本管理系統,Linux的內核以及各類大小項目都是使用git來管理其版本以及迭代開發。本文將簡要介紹其hook的功能,並通過一個特定的hook實現來展示如何來開發hook