Recently updated/posted Linux and UNIX FAQ (mostly useful to Linux/UNIX new administrators or users) : Unzip files in particular directory or folder under Linux or UNIX On Linux how many kernel you can compile at the same time and how many kernel you can load in Linux? How do I save or redirect stdout and […]
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.