Print this page
2849 uptime should use locale settings for current time
   1 '\" te

   2 .\" Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved.
   3 .\" Copyright 1989 AT&T
   4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7 .TH WHODO 1M "Jun 18, 2003"
   8 .SH NAME
   9 whodo \- who is doing what
  10 .SH SYNOPSIS
  11 .LP
  12 .nf
  13 \fB/usr/sbin/whodo\fR [\fB-h\fR] [\fB-l\fR] [\fIuser\fR]
  14 .fi
  15 
  16 .SH DESCRIPTION
  17 .sp
  18 .LP
  19 The \fBwhodo\fR command produces formatted and dated output from information in
  20 the \fB/var/adm/utmpx\fR and \fB/proc/pid\fR files.
  21 .sp
  22 .LP
  23 The display is headed by the date, time, and machine name. For each user logged
  24 in, device name, user-ID and login time is shown, followed by a list of active
  25 processes associated with the user-ID. The list includes the device name,
  26 process-ID, CPU minutes and seconds used, and process name.
  27 .sp


  31 .SH OPTIONS
  32 .sp
  33 .LP
  34 The following options are supported:
  35 .sp
  36 .ne 2
  37 .na
  38 \fB\fB-h\fR\fR
  39 .ad
  40 .RS 6n
  41 Suppress the heading.
  42 .RE
  43 
  44 .sp
  45 .ne 2
  46 .na
  47 \fB\fB-l\fR\fR
  48 .ad
  49 .RS 6n
  50 Produce a long form of output. The fields displayed are: the user's login name,
  51 the name of the tty the user is on, the time of day the user logged in (in
  52 \fIhours\fR\fB:\fR\fIminutes\fR), the idle time \(em that is, the time since
  53 the user last typed anything (in \fIhours\fR\fB:\fR\fIminutes\fR), the CPU time
  54 used by all processes and their children on that terminal (in
  55 \fIminutes\fR\fB:\fR\fIseconds\fR), the CPU time used by the currently active
  56 processes (in \fIminutes\fR\fB:\fR\fIseconds\fR), and the name and arguments of
  57 the current process.



  58 .RE
  59 
  60 .SH EXAMPLES
  61 .LP
  62 \fBExample 1 \fRUsing the whodo Command
  63 .sp
  64 .LP
  65 The command:
  66 
  67 .sp
  68 .in +2
  69 .nf
  70 example% whodo
  71 .fi
  72 .in -2
  73 .sp
  74 
  75 .sp
  76 .LP
  77 produces a display like this:


   1 '\" te
   2 .\" Copyright (c) 2013 Gary Mills
   3 .\" Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved.
   4 .\" Copyright 1989 AT&T
   5 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   7 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   8 .TH WHODO 1M "Dec 15, 2013"
   9 .SH NAME
  10 whodo \- who is doing what
  11 .SH SYNOPSIS
  12 .LP
  13 .nf
  14 \fB/usr/sbin/whodo\fR [\fB-h\fR] [\fB-l\fR] [\fIuser\fR]
  15 .fi
  16 
  17 .SH DESCRIPTION
  18 .sp
  19 .LP
  20 The \fBwhodo\fR command produces formatted and dated output from information in
  21 the \fB/var/adm/utmpx\fR and \fB/proc/pid\fR files.
  22 .sp
  23 .LP
  24 The display is headed by the date, time, and machine name. For each user logged
  25 in, device name, user-ID and login time is shown, followed by a list of active
  26 processes associated with the user-ID. The list includes the device name,
  27 process-ID, CPU minutes and seconds used, and process name.
  28 .sp


  32 .SH OPTIONS
  33 .sp
  34 .LP
  35 The following options are supported:
  36 .sp
  37 .ne 2
  38 .na
  39 \fB\fB-h\fR\fR
  40 .ad
  41 .RS 6n
  42 Suppress the heading.
  43 .RE
  44 
  45 .sp
  46 .ne 2
  47 .na
  48 \fB\fB-l\fR\fR
  49 .ad
  50 .RS 6n
  51 Produce a long form of output. The fields displayed are: the user's login name,
  52 the name of the tty the user is on, the time of day the user logged in
  53 (in ISO time format, weekday name and \fIhours\fR\fB:\fR\fIminutes\fR,
  54 or ISO date format),
  55 the idle time \(em that is, the time since the user last typed anything
  56 (in \fIhours\fR\fB:\fR\fIminutes\fR\fB:\fR\fIseconds\fR),
  57 the CPU time used by all processes and their children on that terminal
  58 (in \fIhours\fR\fB:\fR\fIminutes\fR\fB:\fR\fIseconds\fR),
  59 the CPU time used by the currently active processes
  60 (in \fIhours\fR\fB:\fR\fIminutes\fR\fB:\fR\fIseconds\fR),
  61 and the name and arguments of the current process.
  62 .RE
  63 
  64 .SH EXAMPLES
  65 .LP
  66 \fBExample 1 \fRUsing the whodo Command
  67 .sp
  68 .LP
  69 The command:
  70 
  71 .sp
  72 .in +2
  73 .nf
  74 example% whodo
  75 .fi
  76 .in -2
  77 .sp
  78 
  79 .sp
  80 .LP
  81 produces a display like this: