Questions tagged [last-command]
11 questions
3
votes
0 answers
Why the command "last reboot" returns several items including "still running"
and the time is not my system time? For example
reboot system boot 4.2.0-16-generic Mon Nov 9 20:48 still running
reboot system boot 4.2.0-16-generic Mon Nov 9 20:45 still running
reboot system boot 4.2.0-16-generic Mon Nov 9 20:41 …
tmpbin
- 203
2
votes
2 answers
`last reboot` is missing one hour
I want know the boot and shutdown date of my laptop on last friday:
===> last reboot
reboot system boot 4.4.0-47-generic Mon Nov 28 09:39 still running
reboot system boot 4.4.0-45-generic Fri Nov 25 09:40 - 15:55 (06:14)
According to this…
guettli
- 1,765
2
votes
1 answer
Why is printf command in shell script giving errors
I have a script that sends me some info about different machines, and it's working fine in Fedora machines, but Ubuntu 20.04 gives me error for only one printf. I can't seem to see what am I doing wrong. So the statement is:
#printf "Last logins…
DenisZ
- 223
1
vote
1 answer
Why is `last` showing so many logins in one second? Did I got hacked?
When I ran last into the terminal, I found this:
roundduc pts/0 :0 Sun Nov 15 16:47 still logged in
roundduc :0 :0 Sun Nov 15 16:46 still logged in
reboot system boot 3.19.0-33-generi Sun…
RoundDuckMan
- 682
1
vote
0 answers
Can be the `last` command disabled?
I don't want to make the log of logins accessible. How do I disable/cancel logging data available through the last command?
user984621
- 171
1
vote
1 answer
Preseed late_command
I am trying to add a late_command to my preseed file but I always get errors.
This is the command I am trying to use:
in-target curl -L -o /home/$username/postinstall.sh…
atwright147
- 111
0
votes
2 answers
How to parse/filter "last" command for displaying logins of a specific date in Ubuntu 14.04?
I want to parse login activity of olny current current date. Last command provides me with multiple rows and columns. How do i filter it or even parse it in Python?
Any help will be appreciated.
0
votes
0 answers
How to read this time output?
Why is there a 1+ in Wed Dec 9 19:34 - 20:50 (1+01:15)?
I find two such entries when I look at the output of last reboot:
...
reboot system boot 4.2.5-1-ARCH Fri Dec 11 10:31 - 10:32 (00:01)
reboot system boot 4.2.5-1-ARCH Thu Dec 10…
daltonfury42
- 5,559
0
votes
1 answer
How to use last to see how many times users logged in?
I need to see how many times users logged in.
I used last | sort | uniq -c but it gave me bad data
I need to sort them by number of times they logged in and only show username and number of time.
for example:
username number of logins
userb …
Usermaxn
- 247
- 2
- 10
0
votes
0 answers
Does Ubuntu automatically boot when near a source of internet (router, phone data)
Looking at the "last" command, I see that my laptop booted up a few times in the past couple months, one time for six hours.
It was sitting in an empty place, and I noticed that every time listed where it booted up, were times where I visited the…
-1
votes
1 answer
Command or script to get user login details of last 6 months
I need to get the details of the users logged in from last 6 months to analyze and to increase the cpu of my server. I'm tried the command last -a but it is not giving the complete results. Anyone please help me to get the details of users logged in…
Harsha
- 329