We all know that we can dsiplay IP address information with our
ip command:
$ ip a s
We know this command displays the IP address assigned to all logical and physical interfaces, along with some other wonderful information for each interface.
However, if you want to display just the IP address for the physical interface, here's a command that doesn't get a lot of publicity:
$ hostname -I
- that's an uppercase letter I, not an uppercase L
Nothing earth shattering, but proof that the learning never stops!
I am still new when it comes to anything Linux but I have a question can you use the host -I command to help figure if the is an issue with configuration or would it just be easier to use a nslookup?
Hello Jdrose,
Every Linux guru was new once upon a time!!!!
May I get you to restate your question, with a little bit more specificity!
If i am trying to troubleshoot a connection or DNS error would using hostname -l be a good starting point or is there a different command I should try first? Hopefully this one makes more sense.
Thanks for sharing..!
Thank you Blue_bird for viewing!!!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.