When writing to a log file, it's often handy to add a timestamp to help you keep track of a sequence of events or find past entries during a specified date and time. You can display the date and time in a variety of formats by using the AIX date command. Note that although you can also set the system time using the date command, this article is about displaying the time, not changing it. If you run date without any flags, you'll get output similar to this: date Tue Mar 26 ...

REGISTER NOW TO ACCESS THIS ARTICLE

All registered users get access to premium content on POWER IT Pro for free.