在 windows 下,我們常用 nbtstat -a 123.xxx.xxx.xxx 來反查,在 macOS 下似乎不行,
該用什麼指令呢?
如上圖:請用
smbutil status 指令。

那如何查詢目前使用中的 port 及 process id?
lsof -n -i | grep LISTEN
查看路由 route
netstat –nr
得到所有 interfaces
networksetup -listallnetworkservices
What is iTerm2?
iTerm2 is a replacement for Terminal and the successor to iTerm. iTerm2 brings the terminal into the modern age with features you never knew you always wanted.
https://www.iterm2.com