Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] viewing full hostname ins 'last'
- Date: Fri, 7 Jun 2002 17:10:55 +0900 (JST)
- From: Nguyen Hung Vu <vuhung@example.com>
- Subject: Re: [tlug] viewing full hostname ins 'last'
On Fri, 7 Jun 2002, Jim Tittsler wrote: > On Fri, Jun 07, 2002 at 04:24:09PM +0900, Nguyen Hung Vu wrote: > > How can I view full hostname "orange21.jd.uec.xx.jp" instead of trunted > > ones like below? > > > > bash$ last -10 vuhung > [...] > > sunos4.0 > > Does SunOS's 'last' support the -a flag? (It moves the hostname > to the last column and won't truncate it.) > No, It does not while linux does. Here is the man page ------------- bash$ man last LAST(1) USER COMMANDS LAST(1) NAME last - indicate last logins by user or terminal SYNOPSIS last [ -number ][ -f filename ] [ name... ] [ tty... ] DESCRIPTION last looks back in the wtmp file which records all logins and logouts for information about a user, a teletype or any group of users and teletypes. Arguments specify names of users or teletypes of interest. Names of teletypes may be given fully or abbreviated. For example last 0 is the same as lasttty0. If multiple arguments are given, the informa- tion which applies to any of the arguments is printed. For example last root console would list all of ``root's'' ses- sions as well as all sessions on the console terminal. last displays the sessions of the specified users and teletypes, most recent first, indicating the times at which the session began, the duration of the session, and the teletype which the session took place on. If the session is still continu- ing or was cut short by a reboot, last so indicates. The pseudo-user reboot logs in at reboots of the system, thus last reboot will give an indication of mean time between reboot. last with no arguments displays a record of all logins and logouts, in reverse order. If last is interrupted, it indicates how far the search has progressed in wtmp. If interrupted with a quit signal (gen- erated by a CTRL-\) last indicates how far the search has progressed so far, and the search continues. OPTIONS -number limit the number of entries displayed to that specified by number. -f filename Use filename as the name of the accounting file instead of /var/adm/wtmp. FILES /var/adm/wtmp login data base SEE ALSO ------- > > -- > Jim Tittsler GPG: 0x01159DB6 > Kanto Computer Calendar http://www.OnJapan.net/calendar/ > > +----------------------------------------------------------+ | Nguyen Hung.Vu | | The University of Electro-Communications, Tokyo, Japan | +----------------------------------------------------------+ | Takeshi's small space http://site.techviet.com/vuhung/ | | Join KDE-i18n-Vi? http://vi.i18n.kde.org/ | | VYSA http://vysasports.vngate.net/ | | Vn Linux Users Group http://vietlug.sourceforge.net/ | | Tokyo Linux Users Group http://www.tlug.gr.jp/ | +----------------------------------------------------------+
- References:
- Re: [tlug] viewing full hostname ins 'last'
- From: Jim Tittsler
Home | Main Index | Thread Index
- Prev by Date: [tlug] IPChains -> IPTables
- Next by Date: Re: [tlug] Mozilla printing question.
- Previous by thread: Re: [tlug] viewing full hostname ins 'last'
- Next by thread: [tlug] Which is faster fgrep or cat | grep
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links