LinuxQuestions.org
Visit Jeremy's Blog.
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 10-04-2007, 10:35 AM   #1
mpmackenna
Member
 
Registered: May 2006
Posts: 69

Rep: Reputation: 15
Determine whether there are active sessions from CLI


Hello, I am looking for a command that I can use via an SSH session to tell me if there are any active sessions on my Mandriva 2007.1 box. For example, if I want to reboot the box, but I am not sure if anyone is sitting at the keyboard with an active session going on that I don't want to interrupt. How can I tell from my ssh session whether anyone else is logged in to the box? Thanks so much. Mike
 
Old 10-04-2007, 10:40 AM   #2
bryantrv
Member
 
Registered: Jan 2005
Location: DeLand, Florida US
Distribution: Debian Etch
Posts: 91

Rep: Reputation: 15
You can use the command who
 
Old 10-04-2007, 10:42 AM   #3
mpmackenna
Member
 
Registered: May 2006
Posts: 69

Original Poster
Rep: Reputation: 15
Perfect... Thank you. Mike
 
Old 10-04-2007, 11:04 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
also w and finger
 
  


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
CLI tool to determine processor type? wanderingmind Linux - Software 3 09-11-2007 07:47 PM
determine active terminal michal017 Linux - Software 4 06-14-2007 01:11 AM
Saving CLI data in the CLI Tons of Fun Linux - General 4 04-03-2007 06:42 AM
How do i determine my IP address? How do i determine my host name? jwymore Linux - Networking 5 02-07-2007 10:57 AM
Two X sessions? LinuxSeeker Linux - General 3 04-07-2004 04:39 PM


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