It's CentOS?The simple way is:
Code:[user@localhost ~]$ hostname -i x.x.x.x
Actually, if you're experiencing issues or you are likely getting your loopback IP. (127.0.0.1) it might be due to you not being able to resolve your hostname and it defaulting to loopback.It's CentOS?
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allroutes
192.168.55.90 pivpn
Then I seriously threw a wrench into his multiple choice options lol.A, I presume. We don't generally do homework, however.
Then I seriously threw a wrench into his multiple choice options lol.
It's not a homework, it's exam questionIf I read it correctly, they just want to print the IP address and nothing else. So, that'd be A. B has the wrong network interface name.
I figure this may not be homework but some online quiz they were doing. It oozes of a gaudy online quiz, so I'm hoping it wasn't homework.
It's a low possibility for me to enter the industry after this courseWe generally don't help with those, either. You should know what you're doing if it's a course or exam. We don't want inept people entering the industry. It's okay to ask for help, but show your own work and effort first.
Ah well... Yeah, the answer is A. Well, it should be A.