Get IP in terminal?
How can you see your IP in the terminal?
|
ifconfig *your interface here*
For example, after becoming root, I typed #ifconfig eth0 Although, because I was on a network, it gave me my computer's IP on the network instead of the entire network's broadcast IP. |
Actually, you should be able to run ifconfig with no arguments from any account (though if it's not in your user path, you might have to type the file path). No need to su or any such thing.
|
^ depends on your distro, or your own permissions you set.
|
To get your external ip address, save this and make it executable:
Code:
#!/bin/bash |
All times are GMT -5. The time now is 05:52 AM. |