Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TIPS on "lastcomm" command

Status
Not open for further replies.

conquersmile

Technical User
Aug 29, 2003
20
AU
Hi,

I understand that lastcomm command gives me the entire details of lastcommand executed,

but i am unable to execute it since i am getting the following error.

"/var/adm/pacct: No such file or directory"

Since i am unable to execute the command , i don't know what kind of output this command gives me, any body please help.

Regards,
Padma Swamy
 
Hi Padmaswamy

lastcomm command lists out the last commands executed in
reverse chronological order...those previouly executed commands will be stored in /var/adm/pacct(accounting summary files).
You should run the following command before you run 'lastcomm' command.
/usr/sbin/acct/startup

abstract:
step1:run the command :$/usr/sbin/acct/startup

step2: $lastcomm

That's it!

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top