Thursday, February 28, 2013

How to manually rotate pacct

If your file /var/adm/pacct is growing rapidly and you want to rotate it manually, you may use either of the below.

1. Use the command /usr/lib/acct/ckpacct. After you execute it, a file pacct1 will be created and an empty pacct.

2. If you have logadm command, you may just execute logadm -p now /var/adm/pacct