Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there an easy way to check who is logged in on any jail?

share|improve this question

How about running following from the host system?

jexec <jid> w


# jexec 19 w
11:38AM  up 8 days,  3:17, 1 user, load averages: 0.00, 0.00, 0.00
USER             TTY      FROM              LOGIN@  IDLE WHAT
root             p2        11:30AM     8 -csh (csh)
share|improve this answer
Thx for a tip. I this that way: jls | awk '\!/JID/ { print $1 }' | xargs -I % jexec % who – user9649 Jun 16 '09 at 13:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.