6

Helper Script: ip

 3 years ago
source link: https://blog.anantshri.info/helper-script-ip/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Techno Enthusiast's BlogSkip to content

Most of the time when we type ipconfig / ifconfig we are looking for a very simple information i.e. what’s the ip address and which interface is up and running.
So here is another simple script that i write in both shell script and batch file format to ensure that i can extract the basic information in quick turnaround.

Linux / Mac (Bash Version)

1

Windows Batch Version

1

Both the version give you a concise view of what all interfaces are up and runing and which interface has an ip address attached to it.

And here is another script which uses a web service to get you public IP Address.

1

Do you like what you read, What to share it

CategoriesGENERAL

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment

Name *

Email *

Website

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK