LAST,LASTB

Section: Linux System Administrator's Manual (1)
Updated: March 11, 1996
Index
Return to Main Contents
 

NAME

last, lastb - »ç¿ëÀÚµéÀÇ ¸¶Áö¸· ·Î±×ÀÎÇß´Â ±â·Ï ¸ñ·ÏÀ» º¸¿©ÁØ´Ù.  

SYNOPSIS

last [-R] [-num] [ -n num ] [-adx] [ -f file ] [name...] [tty...]
lastb [-R] [-num] [ -n num ] [ -f file ] [-adx] [name...] [tty...]  

DESCRIPTION

Last ¸í·ÉÀº /var/log/wtmp ÆÄÀÏÀ̳ª, -f ¿É¼Ç¿¡¼­ ÁöÁ¤ÇÑ ÆÄÀÏÀ» ÅëÇؼ­ »ç¿ëÀÚÀÇ ·Î±×ÀÎ, ·Î±×¾Æ¿ô ½Ã°£À» º¸¿©ÁØ´Ù. ƯÁ¤ »ç¿ëÀÚÀÇ À̸§À̳ª, tty¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖÀ¸¸ç, ÀÌ·¸°Ô ÁöÁ¤µÇ¸é, ÇØ´ç »ç¿ëÀÚÀÇ ·Î±×ÀÎ Á¤º¸¸¸À» º¸¿©ÁØ´Ù. ttyÀÇ À̸§Àº »ý·«µÉ ¼ö ÀÖ¾î, last 0 ¸í·ÉÀº last tty0 ¸í·É°ú °°Àº ±â´ÉÀ» ÇÑ´Ù. last°¡ ½ÇÇà Áß¿¡ SIGINT(ÀÎÅÍ·´Æ® ±Û¼è, ÁÖ·Î Ctrl-C¿¡ ÀÇÇؼ­ ¸¸µé¾îÁö´Â ½ÅÈ£)°¡ °¨ÁöµÇ°Å³ª, SIGQUIT(¸¶Ä§ ±Û¼è, ÁÖ·Î Ctrl-\¿¡ ÀÇÇؼ­ ¸¸µé¾îÁö´Â ½ÅÈ£)°¡ °¨ÁöµÇ¸é, ½ÇÇàÀ» ¸¶Ä£´Ù.

Á¢¼Ó »ç¿ëÀÚ À̸§¿¡ reboot¶ó°í ³ª¿À´Â °ÍÀº ½Ã½ºÅÛÀÌ rebootµÈ °ÍÀ» ³ªÅ¸³½´Ù. Áï last reboot ¸í·ÉÀ¸·Î ±â·Ï ÆÄÀÏÀÌ ¸¸µé¾îÁø ÈĺÎÅÍ reboot µÇ¾ú´Â ±â·ÏÀ» ¸ðµÎ º¼ ¼ö ÀÖ´Ù.

Lastb ¸í·ÉÀº Á¢¼Ó ½ÇÆи¦ ±â·ÏÇÏ´Â ÆÄÀÏÀÎ /var/log/btmp ÆÄÀÏÀ» ´ë»óÀ¸·Î ÇÑ´Ù´Â °ÍÀ» Á¦¿ÜÇÏ°í´Â last ¸í·É°ú °°´Ù.  

OPTIONS

-num
num ¸¸Å­ÀÇ ÁÙ¸¸ º¸¿©ÁØ´Ù.
-n num
À­ ±â´É°ú °°À½.
-R
hostname Çʵ带 º¸¿©ÁÖÁö ¾ÊÀ½.
-a
hostname Çʵ带 ¸¶Áö¸·¿¡ º¸¿©ÁÜ. ÀÌ ¿É¼ÇÀº ´ÙÀ½ ¿É¼Ç°ú ÇÔ²² ¿ä¿ëÇÏ°Ô ¾²ÀÓ.
-d
´Ù¸¥ È£½ºÆ®¿¡¼­ Á¢¼ÓÇÑ °Í¸¸ º¸¿©ÁÜ.
-x
shutdownÀÌ ÀϾ »óųª, run levelÀÌ ¹Ù²ï »óŵµ º¸¿©ÁÜ.
 

NOTES

wtmp ÆÄÀÏÀ̳ª, btmp ÆÄÀÏÀÌ ¾øÀ» ¼öµµ ÀÖ´Ù. ½Ã½ºÅÛÀº ÀÌ·± ÆÄÀÏÀÌ ÀÖÀ» °æ¿ì¿¡¸¸, ·Î±×ÀÎ Á¤º¸¸¦ ±× ÆÄÀÏ¿¡ ±â·ÏÇÑ´Ù. ¸¸¾à ¾ø´Âµ¥, ÀÌÁ¦ºÎÅÍ last ¸í·ÉÀ» »ç¿ëÇÏ°í ½Í´Ù¸é, ´ÜÁö °£´ÜÇÏ°Ô touch ¸í·ÉÀ» »ç¿ëÇؼ­ °¢ ÆÄÀÏÀ» ¸¸µé¾î ³õÀ¸¸é µÈ´Ù. (¿¹¸¦ µé¸é, touch /var/log/wtmp).  

AUTHOR

Miquel van Smoorenburg, miquels@cistron.nl  

SEE ALSO

shutdown(8), login(1), init(8)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
NOTES
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 08:06:57 GMT, March 25, 2004