4 ms·
> "That delay is /usr/bin/login searching the system logs so that it can display the date and time of your last login." Am I missing something? `w` on my linu
by burgerbrain 14y ago
> "That delay is /usr/bin/login searching the system logs so that it can display the date and time of your last login."
Am I missing something? `w` on my linux system takes well below one second:
[burgerbrain@eeepc] ~ % time w
14:11:18 up 19:41, 6 users, load average: 0.27, 0.10, 0.14
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
REDACTED
w 0.01s user 0.05s system 61% cpu 0.096 total
I can't imagine why anything like that would ever take anywhere near 5 seconds.
- CGamesPlay 14y agoThat shows your currently active login, which is of course in main memory. Your most recent login may well no longer be active, and so you have to search the log files.
- burgerbrain 14y agoAh yeah, had a brain fart there. Even so, `last` is similarly fast.