Topics: AIX, Security, System Admin

How to show the timestamp in your shell history in AIX 5.3

The environment variable EXTENDED_HISTORY in AIX will timestamp your shell history. In ksh, you set it as follows:

# export EXTENDED_HISTORY=ON
A good practice is to set this variable in /etc/environment.

To view your history:
# history
888 ? :: cd aix_auth/
889 ? :: vi server
890 ? :: ldapsearch
891 ? :: fc -lt
892 ? :: fc -l
NOTE: before setting this environment variable, the previous commands in your history will have a question mark in the timestamp field.

If you use the fc command, you will have to use the "-t" option to see the timestamp:
# fc -t




If you found this useful, here's more on the same topic(s) in our blog:


UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.

Interested in learning more?