Get your local IP address like pro
In shell scripts if you need to get you local IP address corresponding to your hostname then you can use this command
hostname -i
In shell scripts if you need to get you local IP address corresponding to your hostname then you can use this command
hostname -i