lastcomm — Display the Last Commands Executed, in Reverse Order
Synopsis
/usr/bin/lastcomm [command-name]... [user-name]... [terminal-name]...
Description
The lastcomm command shows information about previously executed accounting commands that are stored in the /var/adm/pacct file. lastcomm with no arguments displays information about all the commands recorded during the current accounting file's lifetime. If you specify arguments, lastcomm displays only accounting entries with a matching command-name , user-name , or terminal-name .
If terminal-name is - -, there was no controlling TTY for the process. The process was probably executed during boot time. If terminal-name is ??, the controlling TTY could not be decoded into a printable name. ...
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.