On Debian-based systems (e.g., Debian, Ubuntu):

Display MAC Address:

  1. Open a terminal.

  2. Type the following command and press Enter:

ifconfig

  1. Look for your network interface (e.g., eth0, enp0s3, wlp2s0) and find the “HWaddr” field. The value next to “HWaddr” is your MAC address.

Display IP Address:

  1. Open a terminal.

  2. Type the following command and press Enter:

ifconfig

  1. Find your network interface (e.g., eth0, enp0s3, wlp2s0), and look for the “inet” field. The value next to “inet” is your IP address.

On Arch Linux:

Display MAC Address:

  1. Open a terminal.

  2. Type the following command and press Enter:

ip link show

  1. Look for your network interface (e.g., eth0, enp0s3, wlp2s0), and find the “link/ether” field. The value next to “link/ether” is your MAC address.

Display IP Address:

  1. Open a terminal.

  2. Type the following command and press Enter:

ip addr show

  1. Find your network interface (e.g., eth0, enp0s3, wlp2s0), and look for the “inet” field. The value next to “inet” is your IP address.

On Fedora:

Display MAC Address:

  1. Open a terminal.

  2. Type the following command and press Enter:

ip link show

  1. Look for your network interface (e.g., eth0, enp0s3, wlp2s0), and find the “link/ether” field. The value next to “link/ether” is your MAC address.

Display IP Address:

  1. Open a terminal.

  2. Type the following command and press Enter:

ip addr show

  1. Find your network interface (e.g., eth0, enp0s3, wlp2s0), and look for the “inet” field. The value next to “inet” is your IP address.

On openSUSE:

Display MAC Address:

  1. Open a terminal.

  2. Type the following command and press Enter:

ifconfig

  1. Look for your network interface (e.g., eth0, enp0s3, wlp2s0) and find the “HWaddr” field. The value next to “HWaddr” is your MAC address.

Display IP Address:

  1. Open a terminal.

  2. Type the following command and press Enter:

ifconfig

  1. Find your network interface (e.g., eth0, enp0s3, wlp2s0), and look for the “inet” field. The value next to “inet” is your IP address.

These commands should help you quickly find your MAC and IP addresses on various Linux distributions. Make sure to use the appropriate command based on the distribution you are using.