LinuxQuestions.org
Review your favorite Linux distribution.
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 09-17-2008, 01:32 PM   #1
vijaya_svk
Member
 
Registered: Nov 2007
Posts: 61

Rep: Reputation: 15
how can i know the users connected to my system


Hi
My system i connected to the network and i am using it through other system using SSH. I have some other friends accessing the system at same time. How can i know who are connected and their IP addresses? if i want to send a message to a connected system how can i do that??

Also I have a broadband connection and i get the IP adresses through DHCP and it will be in the range 192.168.1.XXX. How can i know my gateway, DNS and IP address that ISP has provided to me.
 
Old 09-17-2008, 01:36 PM   #2
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS6
Posts: 267

Rep: Reputation: 58
for the system you are connected to: "who" does it
Dave
 
Old 09-17-2008, 02:29 PM   #3
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
"w" also works and gives a little more info
 
Old 09-18-2008, 05:11 PM   #4
sachin_shetty
Member
 
Registered: Jul 2006
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by john test View Post
"w" also works and gives a little more info

These commands are standard in all distributions:
w
who -a
users
who and users show who are currently logged on. You can also use last:
last
Last looks through /var/log/wtmp and displays a log of the last users logged on, including those currently logged on.
Another possibility is to get the users-information from the systems logs:
grep sshd /var/log/messages
 
Old 09-18-2008, 05:57 PM   #5
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
you could try looking at the netstat utility. type 'man netstat'. this program has many options and could be what you need to see all open connections on a particular machine.
just a thought.
 
  


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
How can I find connected users? adham1sa Linux - Networking 6 09-11-2009 04:44 PM
how I can find out how many users are connected/ using with my proxy . shahg_shahg Linux - Networking 3 12-10-2005 08:58 AM
Counting users connected to Apache LuggerHouse Linux - Software 3 12-24-2004 10:47 AM
find out which users are connected??? lemay_jeff Linux - Newbie 2 06-15-2004 11:14 AM
win98se and redhat 53 users connected? robert_edwards Linux - Networking 1 05-04-2004 10:11 PM


All times are GMT -5. The time now is 12:24 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