How to check my IP in Linux?
I have a text based Linux server - how do I check my IP?
If you've logged in as root, ifconfig should work.
Ask SCO to audit it for you?
couldn't resist, sorry
ifconfig generally works even if you aren't root. It's just not in the default PATH, so you have to type /sbin/ifconfig
You can try typing 'ip address show' (or '/sbin/ip address show') as well. This is a newer syntax not available on all machines. ifconfig should work everywhere.
There are a great family of very simple but very useful scripts that, in Debian at least, come packaged with the 'ipmasq' package (and should be separated from it into a new package, IMHO, due to their usefulness). The one relevant to what you want is called 'ipofif', and is simply
You know you've been reading GrokLaw too long when you parse the "IP" in the title as "Intellectual Property"
Fog Creek Home