34. Process Accounting
34.1 Overview
1. Keeps track of user processes.
2. Originally intended as a way to keep track of resources in order to bill departments/users for their usage.
3. Packages
34.2 Turning On/Off
1. Enabling – Use accton command and specify the file for storing the accounting information.
2. /sbin/accton /var/log/pacct
3. Disabling – Use accton command without specifying a file.
4. /sbin/accton
34.3 Viewing Information
1. ac – The ‘ac’ command is used to print out a report of connection times.
ac # Print total connection time.
ac -dp # Give daily (-d) connection totals by person (-p)
ac –complain # Print out any problems in wtmp file (time-warps, missing records, etc.)
2. sa – The ‘sa’ command is used to summarize accounting information.
sa # Print information about all commands in the process accounting file
sa -u # Print command information by user
3. lastcomm – Displays which commands have been executed.
lastcomm # Display all commands executed on system
lastcomm rm # Display information about all invocations of the ‘rm’ command

Download the Ensurepass Latest 2013 RHCE EX300 Practise Test PDF to pass RHCE EX300 exam.

Comments are closed.