Linux - How to check if a user has been logged in for more days?


I want to list users who have been logged on for more days on Linux with last.
I'm not really sure how can I check users logged in for more days.

I believe you can do last -F, you could also try last -p YYYYMMDDhhmmss if you want to check a specific time.

Hope this helps!