Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I logged to a server having sunOS via putty and run the WHO command.
the result it gave me the with my local IP.
Again I logged to the same server via putty from some other terminal.
again i run the who command, it gave me some other IP. It did not give the local IP of that terminal. Ideally it should give the local IP.
can someone explain me
yes, I know that, but the 'Who' command is not showing the IP that it ought to.
Who is showing some other IP.
in this case, when I execute ifconfig command , it shows its IP as 10.0.0.1(just saying)
while who command shows it being connected to some other IP 10.1.5.26
so this is the fresh result of who command:
so In line1 , user1 is my computer and result is correct
In Linw 2, I again logged with same username from someother computer, and who command gives 18.104.22.168 as IP, but while running ifconfig command , the Ip is something else(22.214.171.124 lets say)
I checked some different thing in line 3, the Ip field something (:1.0)
PS: Shivaa,the commands suggested by you are not working on my server environment
Let's assume that you've connected on Server-A from Server-B and Server-C.
You then invoked who cmd on Server-A and got the results as shown in screenshot.
So let me explain, pts stands for psudo terminal type device i.e. it indicates that you're connected on Server-A from some remote system i.e. Server-B or Server-C. Then following to it, an IP address is actually IP address of the remote machine i.e. either Server-B or Server-C.
10.10.10.10 is IP address of Server-B.
126.96.36.199 is IP address of Server-C.
In third case, where you can see a 1:0, is nothing but a local xterm with DISPLAY number 1 and instance no. 0. It's an xterm opened from Server-A itself. Therefore there's no IP, but only DISPLAY value is showing.
Then run following commands on Server-B and Server-C to check their corresponding IPs. Server-B should have 10.10.10.10 and Server-C should have 188.8.131.52
~$ ifconfig -a # Run on Server-B and Server-C
~$ nslookup Server-B # Run from Server-A or Server-C
~$ nslookup Server-C # Run from Server-A or Server-B
Shivaa, the commands suggested by you are not working on my server environment.
They're GNU specific commands line options, so please refer man page of who for it's associated options.