We use the Accton command to turn process statistics on or off, and if not with any parameters, it means to turn off process statistics. Its main parameters are as follows:
(1)-V or--version, indicating that the version information is displayed and exited.
(2)-H or--HELP, print help information.
In the Linux system to start process statistics must use the Accton command, and must use the root identity to run, the Accton command in the form of Accton file, and file must exist beforehand. We can use the Touch command to create the file. Once Accton is activated, you can use the Lastcomm command to detect commands that are executed at any time in the system. If you want to turn off statistics, use the Accton command without any parameters.
Lastcomm displays information about previously used commands. Accton is used to start a process record so that all commands are recorded in a specified file, and Lastcomm is used to view the file for easy system administration. The main options are as follows:
(1) The-strict-match represents an exact match to each column.
(2)--user name displays only the command records for the specified user.
(3)--command name displays only the records for the specified command.
(4)--tty name displays only the commands that run on the specified terminal.
(5)-f filename Specifies a command log file to replace the default file.
(6)--debug to print other kernel information.
(7)--version print version information.
(8)--help printing help information.
Sinsing Analysis of Accton commands and Lastcomm commands in Linux