Linux core application command quick query serialization 1: accton: Process statistics on enabling or disabling

Source: Internet
Author: User
Tags touch command
4.1 accton: enable or disable process Statistics

Purpose: run the accton command to enable process statistics. If no parameter is included, process statistics is disabled.

Usage: accton [-v | -- version] [-H | -- help] [filename]

The main options are as follows.

--V, -- version: displays the AC version and exits.

--H, -- help: print the command overview and display the default accton file.

Note: Acct is a toolkit containing tools for statistics on user connection time and process execution. It records user logon information. TheProgramAnd program execution information. It contains the following commands.

-AC: brief information about the Logon account.

-Accton: Enables or disables the process account record function.

-Last: displays users who have logged on.

-Lastcomm: displays executed commands.

-Sa: the summary of process account records.

-Dump-utmp: output the utmp file content.

-Dump-ACCT: output the content of the Acct or pacct file.

The application example is as follows.

Enable or disable process statistics.

In Linux, The accton command is used to START process statistics and must be run as root. The accton command is in the form of accton file, which must exist in advance. Run the touch command to create the pacct file:

# Touch/var/log/pacct

Then run:

# Accton/var/log/pacct

Once accton is activated, you can use the lastcomm command to monitor the commands executed in the system at any time. To disable statistics, you can use the accton command without any parameters:

# Accton

 

Title: Fast query of Linux core application commands

Author: Cao jianghua,Edited by Fang Jianguo

ISBN: 978-7-121-11149-5

Publication date: 2010Year7Month

Pricing:59.00RMB

Start: 16Open

Page number: 528Page

Internal Capacity Simplified Introduction

After more than a decade of development, the Linux operating system has been continuously improved and more applications have been made. Now, Linux Desktop is relatively mature, but the command line technology is still the core technology of Linux.

This book collects core management commands (including the latest virtualization management commands and SELinux management commands) under Linux Command lines) the function description, syntax description, option introduction, typical application instances, and precautions are described in detail for each command, and a large number of instances are described, this gives you a quick and in-depth understanding of Linux commands. The book is classified according to the functions of Linux commands for readers to query. Before reading this book, you do not need to have too much background knowledge, whether you are a Unix user, a new linux user, or even a Windows user who has never been in touch with Linux, you can easily understand and master the content, and quickly understand and use the Linux system of each release. This book uses the commands involved in RHEL 5.5 and also applies to other Linux distributions. It is a required reference for all Linux users.

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.