ifconfig - configure a network interface (net-tools, deprecated)
ifconfig [interface]
Options you will use
interface- show just that one
Examples
$ ifconfig enp0s1the old way to see an address
$ ip -br athe modern replacement
Gotchas
- Not installed on Ubuntu Server;
sudo apt install net-toolsbrings it back, but learnip: ifconfig cannot show multiple addresses per interface properly, policy routing, or network namespaces.
Try ifconfig in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.