LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-20-2002, 11:44 AM   #1
Silversun
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 ...

thanks
 
Old 08-20-2002, 11:52 AM   #2
neo77777
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, 12:01 PM   #3
Silversun
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, 12:22 PM   #4
dnar
Member
 
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 12:23 PM.
 
Old 08-20-2002, 12:31 PM   #5
Silversun
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
Address: 0.0.0.0

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


Reply


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 07:51 PM
listing all files of a certain user X-GhoSt Linux - General 1 10-22-2005 04:22 AM
Listing Commands Blackout_08 Fedora 2 03-07-2005 10:57 AM
Listing shares Omnica Linux - Networking 1 01-14-2005 01:07 PM
Directory Listing mattbeekler Linux - Software 8 07-22-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 PM.

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