I read a few guides online that explain how to use the command last
to have a list of user logins.
One of the easiest command is:
last -s yesterday -t today
which should show the list of logins from yesterday till today. But when I execute this command on a Mac I receive an:
last: illegal option -- s
usage: last [-#] [-t tty] [-h hostname] [user ...]
This is not how it is supposed to work.
Why -s
is not recognised?
Best Answer
Always use
man X
directly on the Mac itself to see what is available for command X. The reason is that OS X was originally based on BSD and not GNU (most likely to avoid the GPL) so you should not follow Linux tutorials for MacOS.