From the earlier question:
why are utmp, wtmp and btmp called as they are?
I would like to now what the 'tmp' part is. Is it 'temp/temporary'. As you can see from the earlier question, that part wasn't answered.
From the earlier question:
why are utmp, wtmp and btmp called as they are?
I would like to now what the 'tmp' part is. Is it 'temp/temporary'. As you can see from the earlier question, that part wasn't answered.
tmp
may be short for temporary (as in transient) since these files are, like log files, periodically rotated/truncated. The utmp
and wtmp
files also initially resided in /tmp
when they were introduced in Version 3 AT&T Unix.
However, tmp
could nowadays be read as an abbreviation of timestamp. tm
is also a common abbreviation of time (see, e.g., the manual for the ctime()
C function and the time.h
header) and these files contain the timestamps for system events relating to users logging in.
u
in utmp
likely comes from user.b
in btmp
(on systems that has it) likely comes from bad (bad logins).w
in wtmp
may come from who (as in "who was logged in?"), but not from who
or w
(the utilities) as they use utmp
and not wtmp
.utmp
stuff, you'll see a lot of the struct members contain ut_...
, indicating that the ut
is the prefix, and separate from the mp
part. man7.org/linux/man-pages/man5/utmp.5.html
ut_
struct members is that ut
is the first two characters of utmp
, and nothing more than that.