Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
fedora 的 bash shell 中是否有一个命令可以为我提供当前分配的 IP 地址?
ifconfig是您正在寻找的
尝试以下命令:
ipconfig getifaddr eth0