Quantcast
Channel: nixCraft
Viewing all articles
Browse latest Browse all 12

Read UNIX / Linux System IP Address In a Shell Script

$
0
0
Reading an IP address in shell script required many time. However, different Linux distribution stores IP address in different files. If you are looking to run script under different UNIX like OSes such as Solaris or FreeBSD then you need to use the ifconfig command. The ifconfig command is not just used to configure a network interface, but it can be use to obtained information such as network IP, netmask and much more.

Viewing all articles
Browse latest Browse all 12

Trending Articles