Sudo ip addr add 172.16.238.15/24 dev eth0

sudo ip addr add 172.16.238.15/24 dev eth0 what does dev mean ?

@ajey, that means that you are setting the ipaddress for the system. Usually eth0 is the primary interface for Linux based systems.
And since you are using sudo, it probably means that you are not a root user. So, any user with sudo permissions to execute the above command( need to be set in sudoers file), can execute the above command and set the IP.

@ajey dev refers to “device”.

1 Like

In the command sudo ip addr add 172.16.238.15/24 dev eth0, dev stands for device.

It’s used to specify the network interface to which you want to assign the IP address. In this case, eth0 represents the first ethernet interface on your system.

There can be multiple network interfaces on a system, and each interface will have its own name (e.g., eth1, wlan0). The dev option allows you to target the specific interface where you want the IP address to be configured.