2016/11/10

在 macOS 下如何用 IP 查尋電腦名稱?


在 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

2 則留言:

wangxinpier 提到...

非常感谢,你的分享,正需要这个

絕對 ✘ 視線 提到...

不客氣~