RAWTMP(1)

๐Ÿ“ฆ version 1.9b5, in ubuntu jammy

๐Ÿ’– 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 of rawtmp. know your queen's number, bestie ๐Ÿ‘‘
  • -w wtmp โ€” select a different input file instead of the default (/var/log/wtmp). your file, your rules ๐ŸŽ€
  • -X[3] โ€” read a wtmp file maintained by versions 3.3 or 3.4 Tacacs terminal server access control software.
  • -X4 โ€” read a wtmp file maintained by version 4.0 of Tacacs terminal server access control software. different era, different file format, iykyk ๐Ÿ•ฐ๏ธ
  • -d โ€” output the time in MMM DD HH:MM:SS format 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 the ut_addr field (in quad-dotted notation) instead of using the ut_host field.
โš ๏ธ 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.
  • -b hours[:minutes[:seconds]] โ€” consider only those utmp entries 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 ๐Ÿ•
  • -s start โ€” selects the starting date of the report, in mm/dd/yy format. ๐Ÿ“…
  • -e end โ€” selects the ending date of the report, in mm/dd/yy format. ๐Ÿ“…โœจ

๐Ÿ“ 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 ๐ŸŒˆ

last(1), sac(8)

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
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms