Question: why we use ifconfig command?
Answer: ifconfig(interface configuration) command is used to configure the kernel-resident network interfaces. It is used at the boot time to set up the interfaces as necessary. ... Also, this command is used to assign the IP address and netmask to an interface or to enable or disable a given interface.