Listing user IP
Hie , everyone .. i'm new to this forum ..
well , i've got a question here ... how do i exactly list out the IP of a user ?? i mean .. what's the command in Unix/Linux to list out the IP of a user .. Hope someone could help me out here because i've been browsing through the web and its been more than an hour and i still can't seem to find the command line or something similar to it .. Could anyone reply me ASAP ... thanks |
/sbin/ifconfig if it is on a local machine
if you need to know the IP address on a remote machine host hostname |
thanks for the reply ..
but .. i'm very new to Unix , so .. ok .. /sbin/ifconfig is the directory where all the IPs are all in there ?? well , my problem now is to list out all currently login users together with their IPs ... so ... can i know what's the command for it ?? |
/sbin/ifconfig is a command. It lists the details of a machines interfaces. The config file /etc/hosts defines local hosts/IP's and is generally searched before any external DNS.
To list all logged in users, including hostname: who -l To do a DNS lookup: nslookup hostname Also look at: man traceroute man dig |
i don't know why but i can't do anything that you've mentioned above .. like the /sbin/ifconfig
man traceroute man dig .. and so on ... i know that man is for manual .. but when i type in man dig , this is what i get .. No manual entry for dig. for nslookup hostname *** Can't find address for server ux: No information *** Warning - the local domain is not set. *** Either hostname should be a domain name, *** the domain should be specified in /etc/resolv.conf, *** or the shell variable LOCALDOMAIN should be set. Name Server: ux Address: 0.0.0.0 *** ux can't find hostname: Non-existent domain |
All times are GMT -5. The time now is 11:35 PM. |