Sinsing Analysis of Accton commands and Lastcomm commands in Linux

Source: Internet
Author: User
Tags touch command

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.