Bash: Get IP and IPv6 address and interfaces.

First use this commands to see your IP and IPv6 address and interfaces.

Now if you want to use this every day, just open your .bashrc file from your home folder.
Add these functions to the .bashrc file:

Now open a new terminal shell and use it:

Leave a Reply

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