The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
wtmp file lo-lp-kl AIX 4 06-02-2008 10:32 AM
truncate wtmp rocker40 UNIX for Dummies Questions & Answers 1 11-04-2004 01:57 PM
wtmp dsharples UNIX for Dummies Questions & Answers 2 11-17-2003 04:06 AM
Resetting WTMP? cuppjr UNIX for Dummies Questions & Answers 4 02-22-2001 09:58 AM
manage the wtmp file me2unix UNIX for Dummies Questions & Answers 0 12-18-2000 03:09 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-12-2000
Registered User
 

Join Date: Dec 2000
Posts: 1
Question

I would loke to read the WTMP file. This is a binary file in the /var/logs directory. Is there any utility which will convert this binary file to ASCII format?
Forum Sponsor
  #2 (permalink)  
Old 12-12-2000
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,191
last(1)

The last(1) command reads wtmp. If you want super-details, you can get the source code for last(1) and examine the format details. If you want to read wtmp in a standard way, just use <B>last</B>.

Also, you can do a man on both <B>last</B> and <B>wmtp</B> to get high level, general details.

Quote:

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. If multiple arguments are given, the information which applies to any of the arguments is printed. For example ``last root console'' would list all of root's sessions 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 cut short by a reboot, last so indicates.

The pseudo-user reboot logs in at reboots of the system.

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 last indicates how far the search has progressed so far, and the search continues.
[Edited by Neo on 12-13-2000 at 02:33 AM]
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0