![]() |
![]() |
![]() |
How to check my IP in Linux? I have a text based Linux server - how do I check my IP?
Prarie Dog
/sbin/ifconfig
hoser
If you've logged in as root, ifconfig should work.
Koz
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
Egor
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.
Jonas B.
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
John Lenton
hostname -i
Will
You know you've been reading GrokLaw too long when you parse the "IP" in the title as "Intellectual Property"
Edgewood
|