Download your favorite Linux distribution at LQ ISO.
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 10-04-2007, 09:35 AM   #1
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, 09:40 AM   #2
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, 09:42 AM   #3
Registered: May 2006
Posts: 69

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

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
also w and finger


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

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

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
Open Source Consulting | Domain Registration