Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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.