mac 快捷命令
Last updated on November 20, 2024 am
🧙 Questions
☄️ Ideas
host管理
代理工具 - https://switchhosts.vercel.app/
通过端口号查进程id
lsof -i tcp:4000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 3939 ispong 23u IPv6 0x327075b42e8eac62 0t0 TCP *:terabase (LISTEN)
netstat -an | grep 4000
tcp46 0 0 *.4000 *.* LISTEN
杀死进程
kill -9 8641
查看mac内网ip
ifconfig | grep broadcast
echo $(ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1)
192.168.115.103前面的是内网ip,别人可以访问
inet 192.168.115.103 netmask 0xffffff00 broadcast 192.168.115.255
打开苹果的emoji
control + command + space(空格)
安装docker
brew install docker --cask
查看外网ip
wget http://ipecho.net/plain -O - -q ; echo
🔗 Links
mac 快捷命令
https://ispong.isxcode.com/os/mac/mac 快捷命令/