From owner-freebsd-questions Fri Jan 25 11:12:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from vvi.com (vvionly.penn.com [208.22.30.250]) by hub.freebsd.org (Postfix) with ESMTP id A526137B402 for ; Fri, 25 Jan 2002 11:12:54 -0800 (PST) Received: from [206.229.112.1] (HELO vvih001) by vvi.com (CommuniGate Pro SMTP 3.5) with ESMTP id 670111; Fri, 25 Jan 2002 14:16:35 -0500 Date: Fri, 25 Jan 2002 14:16:34 -0500 Subject: Re: number of users Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v472) Cc: questions@FreeBSD.ORG To: adrian kok From: Lance Bland In-Reply-To: <20020125190013.23955.qmail@web21210.mail.yahoo.com> Message-Id: <0C288440-11C8-11D6-A67C-0030659A531A@vvi.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.472) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday, January 25, 2002, at 02:00 PM, adrian kok wrote: > What is the best method to know how many users in our > servers? Open up the top of the computer, look in and count them. > > If it is from /etc/passwd, how do I count it? Make them go to /tmp/users one at a time and count them as they enter. You shouldn't let users in your computer because they might trip on a wire or something. If you just want to know how many are logged in then "finger" might work. or you might want to use "last", or "ac -p" The answer really depends on what the word "in" means. -lance _______________________________________________ Lance Bland System Administrator at VVI mailto:lance.bland@vvi.com http://www.vvi.com Realtime, bulk and web data reporting and visualization To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message