logontime(8)
โจ NAME โจ
logontime โ the lil tool that shows you how much cumulative logon time each person has racked up, straight out of wtmp ๐ (it's in the hxtools family, section 8, so yes bestie we're in sysadmin territory ๐)
๐ธ SYNTAX ๐ธ
logontime [-t]
๐ฆ DESCRIPTION ๐ฆ
okay so here's the tea โ โ logontime goes and peeks at the output of last -ax (which means it depends on /var/log/wtmp being there and being readable, no cap), and then it does the math and calculates the cumulative logon time for each user ๐งฎโจ
so like. every time someone logged in, every time they logged out, all of it gets added up into one big number per person. it's giving "who has been living on this machine" energy ๐
by default it hands you the users sorted alphabetically, because it's polite like that ๐
๐ OPTIONS ๐
-tโ sort by logon time instead of alphabetically. so the biggest time-havers go first ๐ฅ the way that this is literally the only flagโฆ iconic, honestly.
๐ SEE ALSO ๐
hxtools(7)โ the whole hxtools friend group, go say hi ๐ซถ
quick reminder bestie: this thing reads /var/log/wtmp, so if that file's not there or you can't read it, it's not gonna have a good time ๐ญ
mwah ๐ this one's from the hxtools collection, dated 2008-02-06 โ yeah she's an older queen but she still slays, periodt ๐โจ๐
๐ฆ where this page comes from
- debian bookworm: hxtools 20221119-1 ยท MIT
- debian trixie: hxtools 20231224-2+b2 ยท MIT
- nixos 26.05: hxtools 20251011
- nixpkgs unstable: hxtools 20251011
- opensuse-leap 16.0: hxtools-man 20231224-bp160.1.12 ยท GPL-2.0-or-later AND WTFPL
- ubuntu jammy: hxtools 20211204-1 ยท GPL-2.0-or-later OR GPL-2+3 OR WTFPL
- ubuntu noble: hxtools 20231224-2ubuntu1 ยท MIT
- ubuntu questing: hxtools 20231224-2ubuntu1
- ubuntu resolute: hxtools 20251011-1 ยท MIT
- ubuntu stonking: hxtools 20251011-1 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms