Skip to main content

Questions tagged [last]

`last` is a command that shows a listing of the last logged in users.

2 votes
0 answers
123 views

Is there a command or config option to prevent adding the logins of a specific user to /var/log/wtmp? Furthermore I noted, that last doesn't display all ssh "sessions" (e. g. when not ...
py-php's user avatar
  • 71
1 vote
4 answers
330 views

When I run lastlog the output shows every user on the system as **Never logged in** me@me-Z370-HD3P:~$ lastlog Username Port From Latest root ...
Elder Geek's user avatar
1 vote
1 answer
207 views

I'm running zsh (version 5.9 x86_64-apple-darwin22.0) on macOS (Ventura 13.6.3). I want to figure out if a given user has logged in during last X days. To accomplish this, I want to get the last login ...
Ari Linn's user avatar
  • 111
1 vote
1 answer
623 views

I want to set a daily limit as to how long my computer can be on in a single day. In order to do so, I'm writing a cron script that will take appropriate action when certain milestones are reached (...
macwirb's user avatar
  • 11
0 votes
1 answer
128 views

I am using the following command to save wtmp (last command) to a logfile: last -F | grep -i -e pv -e nv -e pp > last.log Result: I want to extract the username (first block) and the time of ...
Niek Jonkman's user avatar
0 votes
2 answers
714 views

OK, so basically I'm trying to give a specific date and time and I want to see all the logins that were made during the hour range, e.g. last hour or two last hours from the time and date given. I ...
kuska's user avatar
  • 1
0 votes
1 answer
381 views

Linux system with kernel 4.14.76 and last from util-linux 2.35.1. I am using last -x reboot shutdown to detect abrupt shutdowns and power loss. To my understanding, a clean reboot should show as a ...
Neal Eastwood's user avatar
1 vote
0 answers
273 views

We use the command last to show if other users connected to an embedded system. For interactive ssh-sessions this works fine. But we use MATLAB GPU coder which provides build code to embedded system. ...
MaKaNu's user avatar
  • 131

15 30 50 per page
1
2 3 4 5
7