3947840b05
Interpretation of a chunk in cut.1 was helped by: Yoshihiko Sarumaru <mistral@imasy.or.jp>, hrs
152 lines
4.4 KiB
Groff
152 lines
4.4 KiB
Groff
.\" Copyright (c) 1986, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)who.1 8.2 (Berkeley) 12/30/93
|
|
.\" %FreeBSD: src/usr.bin/who/who.1,v 1.16 2004/07/02 22:22:34 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd May 8, 2002
|
|
.Dt WHO 1
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm who
|
|
.Nd 郎¥·¥¹¥Æ¥à¾å¤Ë¤¤¤ë¤«¤òɽ¼¨¤¹¤ë
|
|
.Sh ½ñ¼°
|
|
.Nm
|
|
.Op Fl HmqsTu
|
|
.Op Cm am I
|
|
.Op Ar file
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢¸½ºß¥í¥°¥¤¥ó¤·¤Æ¤¤¤ëÁ´¥æ¡¼¥¶¤Ë¤Ä¤¤¤Æ¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥í¥°¥¤¥ó̾¡¢Ã¼Ëö̾¡¢¥í¥°¥¤¥ó¤·¤¿Æü»þ¡¢
|
|
¥í¡¼¥«¥ë¤Ç¤Ê¤¤¾ì¹ç¤Ï¥Û¥¹¥È̾¤¬´Þ¤Þ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
|
|
.Bl -tag -width indent
|
|
.It Fl H
|
|
¥³¥é¥à¤Î¸«½Ð¤·¤ò½ÐÎϤξå¤Ëɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Fl m
|
|
ɸ½àÆþÎϤËÀܳ¤µ¤ì¤¿Ã¼Ëö¾ðÊó¤Î¤ß¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Fl q
|
|
.Dq ¹â®¥â¡¼¥É :
|
|
¥í¥°¥¤¥ó¥æ¡¼¥¶¤Î̾Á°¤È¿ô¤ò¥³¥é¥à¤Ëɽ¼¨¤·¤Þ¤¹¡£
|
|
¾¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤Ï¤¹¤Ù¤Æ̵»ë¤µ¤ì¤Þ¤¹¡£
|
|
.It Fl s
|
|
̾Á°¡¢²óÀþ¡¢»þ¹ï¥Õ¥£¡¼¥ë¥É¤Î¤ß¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
|
|
.It Fl T
|
|
³Æ¥æ¡¼¥¶¤¬¥á¥Ã¥»¡¼¥¸¤ò¼õ¤±ÉÕ¤±¤Æ¤¤¤ë¤«¤É¤¦¤«¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
¼¡¤Î¤¤¤º¤ì¤«¤Îʸ»ú¤¬É½¼¨¤µ¤ì¤Þ¤¹:
|
|
.Pp
|
|
.Bl -tag -width 1n -compact
|
|
.It Li +
|
|
¥æ¡¼¥¶¤Ï¥á¥Ã¥»¡¼¥¸¤ò¼õ¤±ÉÕ¤±¤Æ¤¤¤Þ¤¹¡£
|
|
.It Li \&-
|
|
¥æ¡¼¥¶¤Ï¥á¥Ã¥»¡¼¥¸¤ò¼õ¤±ÉÕ¤±¤Æ¤¤¤Þ¤»¤ó¡£
|
|
.It Li \&?
|
|
¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£
|
|
.El
|
|
.It Fl u
|
|
³Æ¥æ¡¼¥¶¤Ë´Ø¤·¤Æ¡¢¥¢¥¤¥É¥ë»þ´Ö¤ò¡¢»þ´Ö¤Èʬ¤Î
|
|
.Ar hh Ns : Ns Ar mm
|
|
¤Î·Á¼°¡¢¥¢¥¤¥É¥ë»þ´Ö¤¬ 1 ʬ̤Ëþ¤Î¾ì¹ç¤Ï
|
|
.Ql \&.
|
|
¤Î·Á¼°¡¢¥¢¥¤¥É¥ë»þ´Ö¤¬ 24 »þ´Ö¤ò±Û¤¨¤ë¾ì¹ç¤Ï
|
|
.Dq Li old
|
|
¤Î·Á¼°¤Çɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Cm am I
|
|
.Fl m
|
|
¤ÈƱ¤¸¤Ç¤¹¡£
|
|
.El
|
|
.Pp
|
|
.Nm
|
|
¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç
|
|
.Pa /var/run/utmp
|
|
¤òÄ´¤Ù¤Þ¤¹¤¬¡¢
|
|
.Ar file
|
|
¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤«¤é¥æ¡¼¥¶¾ðÊó¤òÆÀ¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
|
|
.Ar file
|
|
¤Ë¤Ï¡¢ÉáÄÌ¡¢
|
|
.Pa /var/log/wtmp
|
|
¤ò»ØÄꤷ¤Þ¤¹ (¤¢¤ë¤¤¤Ï¡¢¥µ¥¤¥È¤ÎÊý¿Ë¼¡Âè¤Ç¤¹¤¬¡¢
|
|
.Pa /var/log/wtmp.[0-6]
|
|
¤Ç¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤È¤¤¤¦¤Î¤â¡¢
|
|
.Pa wtmp
|
|
¥Õ¥¡¥¤¥ë¤ÏÂçÊÑÂ礤¯¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¡¢
|
|
.Xr ac 8
|
|
¤Ë¤è¤Ã¤Æ°µ½Ì¤·¤¿¸å¤Ë¤Ï¡¢
|
|
ÆüËè¤Î¥Õ¥¡¥¤¥ë¤òÊݸ¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤â¤¢¤ë¤«¤é¤Ç¤¹)¡£
|
|
.Pa wtmp
|
|
¤Ë¤Ï¡¢ºÇ¸å¤Ë
|
|
.Pa wtmp
|
|
¤òºîÀ®¤¹¤ë¤«¡¢¤Þ¤¿¤Ï¤½¤Î¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ò 0 ¤Ë¤·¤Æ°ÊÍè¤Î
|
|
Á´¤Æ¤Î¥í¥°¥¤¥ó¡¢¥í¥°¥¢¥¦¥È¡¢¥¯¥é¥Ã¥·¥å¡¢¥·¥ã¥Ã¥È¥À¥¦¥ó¡¢¤ª¤è¤Ó
|
|
date ¥³¥Þ¥ó¥É¤Ç¤ÎÆü»þ¤ÎÊѹ¹¤¬µÏ¿¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.Pp
|
|
.Pa /var/log/wtmp
|
|
¥Õ¥¡¥¤¥ë¤¬µÏ¿¥Õ¥¡¥¤¥ë¤È¤·¤Æ»ÈÍѤµ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
|
|
¥æ¡¼¥¶Ì¾¤Ï¶õ¡¢¤¢¤ë¤¤¤ÏÆüìʸ»ú '|', '}', '~' ¤Î¤¦¤Á¤Î
|
|
¤Ò¤È¤Ä¤Ç¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤½¤ÎºÝ¤Ë¤Ï¡¢¥í¥°¥¢¥¦¥È¤¹¤ë¤³¤È¤Ç¡¢¥æ¡¼¥¶Ì¾
|
|
¤¬µÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤½ÐÎϹԤòÀ¸À®¤·¤Þ¤¹¡£¤è¤ê¾Ü¤·¤¯¤Ï¡¢
|
|
.Xr utmp 5
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
.Sh ´Ä¶ÊÑ¿ô
|
|
.Ev COLUMNS , LANG , LC_ALL , LC_TIME
|
|
¤Î´Ä¶ÊÑ¿ô¤¬¡¢
|
|
.Xr environ 7
|
|
¤Îµ½ÒÄ̤ê¤Ë¡¢
|
|
.Nm
|
|
¤Î¼Â¹Ô¤Ë±Æ¶Á¤·¤Þ¤¹¡£
|
|
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
|
|
.Bl -tag -width /var/log/wtmp.[0-6] -compact
|
|
.It Pa /var/run/utmp
|
|
.It Pa /var/log/wtmp
|
|
.It Pa /var/log/wtmp.[0-6]
|
|
.El
|
|
.Sh ¿ÇÃÇ
|
|
.Ex -std
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr last 1 ,
|
|
.Xr users 1 ,
|
|
.Xr w 1 ,
|
|
.Xr utmp 5
|
|
.Sh µ¬³Ê
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
|
|
.St -p1003.1-2001
|
|
¤ËŬ¹ç¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
|
|
.At v1
|
|
¤«¤éÅо줷¤Þ¤·¤¿¡£
|