RAWTMP(1)
๐ RAWTMP(1) โ the rawtmp page, bestie edition ๐
okay so this is a page from the General Commands Manual, and the star of the show is a lil utility called rawtmp. she's niche. she's iconic. let's get into it ๐ซถ
โจ NAME โจ
rawtmp โ display wtmp entries in raw form.
like. literally just shows you the raw vibes. no filter, no glow-up, just data ๐
๐ธ SYNOPSIS ๐ธ
rawtmp [-da] [-w wtmp|-] [-X[3|4]d] [-s start] [-e end] [-b H:M:S]
[--help] [--version]
yes bestie, that's the whole shape of her. every bracket is a choice you get to make. main character energy fr fr โจ
๐ฆ DESCRIPTION ๐ฆ
so rawtmp is a utility that dumps the raw data sitting inside a wtmp or utmp file straight to your screen so you can look at it. that's it. that's the job. and honestly? she ate. ๐
who's this for? anyone who wants to divine the nature of the data stored in the wtmp or utmp files โ like, peer into the mystery, bestie ๐ฎ. it's also handy if you need to extract special wtmp entries that are not documented anywhere. yes, those exist. yes, they're feral. (we're looking at you, the entries that netdate puts in the wtmp file ๐).
now here's a detail that's lowkey fascinating ๐ง โ on a logout, sometimes the username is encoded in the ut_user field by replacing the first character of the username with a null. when that happens, rawtmp will print the contents of the user field with a leading dot . to denote the null character. cute, right? only agetty and tacacs control software are currently known to use this logging method. no cap.
๐ OPTIONS ๐
rawtmp understands the following command line switches. every single one, we're listing them all, no skipping, periodt:
--helpโ outputs a verbose usage listing. she will talk to you. at length. ๐ฌ--versionโ displays the version ofrawtmp. know your queen's number, bestie ๐-wwtmp โ select a different input file instead of the default (/var/log/wtmp). your file, your rules ๐-X[3]โ read awtmpfile maintained by versions 3.3 or 3.4 Tacacs terminal server access control software.-X4โ read awtmpfile maintained by version 4.0 of Tacacs terminal server access control software. different era, different file format, iykyk ๐ฐ๏ธ-dโ output the time inMMM DD HH:MM:SSformat instead of raw time, for a more human readable form (and to actually know what day you're looking at!). ngl this one is a lifesaver because raw timestamps are giving cryptic ๐ญ-aโ print the contents of theut_addrfield (in quad-dotted notation) instead of using theut_hostfield.
โ ๏ธ heads up bestie: ut_addr is almost never used and more than likely contains garbage information. like, she's not even trying. don't trust her.
-bhours[:minutes[:seconds]] โ consider only thoseutmpentries that fall within the last few hours/minutes/seconds from the current time, disregarding the rest. a little time-travel filter, but only backwards, and only a lil bit ๐-sstart โ selects the starting date of the report, inmm/dd/yyformat. ๐-eend โ selects the ending date of the report, inmm/dd/yyformat. ๐ โจ
๐ FILES ๐
/var/log/wtmpโ login database.
that's the default girlie, the one rawtmp reaches for unless you tell her otherwise with -w. ๐
๐ AUTHOR ๐
Steve Baker (ice@mama.indstate.edu)
we stan. thank you for your service ๐ซก๐
๐ BUGS ๐
Could use some filtering options.
that's it. that's the whole bug report. she's honest. she's concise. she's kind of iconic for it honestly ๐ญ
๐ SEE ALSO ๐
go read those too bestie, they're the extended universe ๐โจ
and that's the whole page, no notes, every single detail preserved, nothing skipped, we ate and left no crumbs ๐
signing off from the UNIX Manual, page RAWTMP(1), version vibes intact โ mwah ๐โจ
๐ฆ where this page comes from
- ubuntu jammy: sac 1.9b5-3build1
- Copyright (c) 1995, 1996, 1997, 1998 by Steve Baker (ice@mama.indstate.edu)
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms