Getting Our Connection Information
Learn how to get our connection information.
We'll cover the following
Every computer connected to the internet or a TCP/IP network has an IP address. There are several methods we can use to determine ours from the command line.
The ifconfig
command
The ifconfig
command is a legacy command that displays information about our network devices. While newer tools are available, we’re going to start by exploring this tool because it’s universally available on Mac and Linux. On Ubuntu 18.04, we need to install the net-tools
package to use it:
sudo apt install net-tools
Once it’s installed, we run ifconfig
:
ifconfig
Get hands-on with 1400+ tech skills courses.