DATE(1) - General Commands Manual # DATE(1) - General Commands Manual
NAME # date - display or set date and time
SYNOPSIS # date [-aju] [-f pformat] [-r seconds] [-z output_zone] [+‌format] [[[[[[cc]yy]mm]dd]HH]MM[.SS]]
DESCRIPTION # When invoked without arguments, the date utility displays the current date and time. Otherwise, depending on the options specified, date will set the date and time or print it in a user-defined way.
Changing the system date has some risks, as described in settimeofday(2).
...
LAST(1) - General Commands Manual # LAST(1) - General Commands Manual
NAME # last - indicate last logins of users, ttys, and hosts
SYNOPSIS # last [-csT] [-d date] [-f file] [-h host] [-n number] [-t tty] [user …]
DESCRIPTION # The last utility will either list the sessions of specified users, ttys, and hosts, in reverse time order, or list the users logged in at a specified snapshot date and time in reverse time order.
...
Setusercontext,
Telnet,
Login.conf,
Su,
Readpassphrase,
Chpass,
Passwd,
Fbtab,
Environ,
Utmp,
Login LOGIN(1) - General Commands Manual # LOGIN(1) - General Commands Manual
NAME # login - log into the computer
SYNOPSIS # login [-fp] [-h hostname] [-L local-addr] [-R remote-addr] [-u username] [user]
DESCRIPTION # The login utility logs users (and pseudo-users) into the computer system.
If no user is specified, or if a user is specified and authentication of the user fails, login prompts for a user name. Authentication of users is normally done via passwords, though external authentication mechanisms may be used (see login.
...
Sync,
Boot_sparc64,
Boot_luna88k,
Savecore,
Boot_alpha,
Rc.shutdown,
Boot_i386,
Boot_hppa,
Shutdown,
Boot_amd64,
Rc.d,
Boot_macppc,
Utmp,
Reboot REBOOT(8) - System Manager’s Manual # REBOOT(8) - System Manager’s Manual
NAME # reboot, halt - stopping and restarting the system
SYNOPSIS # halt [-dnpq]
reboot [-dnq]
DESCRIPTION # The halt and reboot utilities flush the file system cache to disk, execute the rc.d(8) scripts specified by the pkg_scripts variable defined in rc.conf(8) in a reverse order, run the system shutdown script, send all running processes a SIGTERM (and subsequently a SIGKILL), and, respectively, halt or restart the system.
...
USERS(1) - General Commands Manual # USERS(1) - General Commands Manual
NAME # users - list current users
SYNOPSIS # users
DESCRIPTION # users lists the login names of the users currently on the system, in sorted order, space separated, on a single line.
FILES # /var/run/utmp
SEE ALSO # finger(1), last(1), who(1), utmp(5)
HISTORY # The users command appeared in 3.0BSD.
OpenBSD 7.5 - May 31, 2007
UTMP(5) - File Formats Manual # UTMP(5) - File Formats Manual
NAME # utmp, wtmp, lastlog - login records
SYNOPSIS # #include <utmp.h>
DESCRIPTION # The <utmp.h> file declares the structures used to record information about current users in the utmp file, logins and logouts in the wtmp file, and last logins in the lastlog file. The timestamps of date changes, shutdowns, and reboots are also logged in the wtmp file.
...
W(1) - General Commands Manual # W(1) - General Commands Manual
NAME # w - display users who are logged on and what they are doing
SYNOPSIS # w [-ahi] [-MÂ core] [-NÂ system] [user]
DESCRIPTION # The w utility prints a summary of the current activity on the system, including what each user is doing. The first line displays the current time of day, how long the system has been running, the number of users logged into the system, and the load averages.
...
WHO(1) - General Commands Manual # WHO(1) - General Commands Manual
NAME # who - display who is logged in
SYNOPSIS # who [-HmqTu] [file]
who am i
DESCRIPTION # The who utility displays a list of all users currently logged on, showing for each user the login name, tty name, the date and time of login, and hostname if not local.
The options are as follows:
-H
Write column headings above the regular output.
...