Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-20-2002, 10:44 AM   #1
LQ Newbie
Registered: Aug 2002
Posts: 3

Rep: Reputation: 0
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 ...

Old 08-20-2002, 10:52 AM   #2
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
/sbin/ifconfig if it is on a local machine
if you need to know the IP address on a remote machine
host hostname
Old 08-20-2002, 11:01 AM   #3
LQ Newbie
Registered: Aug 2002
Posts: 3

Original Poster
Rep: Reputation: 0
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 ??
Old 08-20-2002, 11:22 AM   #4
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
/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

Last edited by dnar; 08-20-2002 at 11:23 AM.
Old 08-20-2002, 11:31 AM   #5
LQ Newbie
Registered: Aug 2002
Posts: 3

Original Poster
Rep: Reputation: 0
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

*** ux can't find hostname: Non-existent domain


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 listing colabus Linux - Software 1 11-09-2005 06:51 PM
listing all files of a certain user X-GhoSt Linux - General 1 10-22-2005 03:22 AM
Listing Commands Blackout_08 Fedora 2 03-07-2005 09:57 AM
Listing shares Omnica Linux - Networking 1 01-14-2005 12:07 PM
Directory Listing mattbeekler Linux - Software 8 07-22-2003 02:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration