How to find your IP address in Linux | Linux ip command | ip without ifconfig | Ubuntu CentOS 7

preview_player
Показать описание
The following commands will get you the IP address list to find public IP addresses for your machine:

The following commands will get you the private IP address of your interfaces:

ifconfig -a
ip addr (ip a)
hostname -I | awk '{print $1}'
ip route get 1.2.3.4 | awk '{print $7}'
(Fedora) Wifi-Settings→ click the setting icon next to the Wifi name that you are connected to → Ipv4 and Ipv6 both can be seen
nmcli -p device show
Рекомендации по теме