Browse Prior Art Database

Time Stamp Option for the History Command Disclosure Number: IPCOM000031695D
Original Publication Date: 2004-Oct-05
Included in the Prior Art Database: 2004-Oct-05
Document File: 1 page(s) / 38K

Publishing Venue



The "history" command in uses run the "fc -l" command to display the contents of the user's command history file. The command history file lists commands by number. This is a useful technique to retrieve the last set of commands that were entered on the command line. The history file contains hundreds of commands, but they do not indicate who typed in the command and what day/time they were entered.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 90% of the total text.

Page 1 of 1

Time Stamp Option for the History Command

If there was minimal activity at the terminal the commands listed in the history file could be days old and the system administrator would not be able to differentiate between commands entered yesterday from the commands entered today. The only know solution is to run the history command on a daily basis and/or jot down a command as a reference point to keep track of commands entered recently. For example the system admin could enter a command as a marker to tell him that all commands entered after the marker command are the most recent commands entered. If someone else enters commands on the same terminal, unfortunately the system administrator will not be able to differentiate his commands from someone else's entered commands.

This approach would allow the system administrator to know exactly what time and date a command was issued and who issued the command.

It would introduces additional flags to the "fc or history" Unix command that would allow the user to assign a time flag and user identification id to the command.

The system administrator would be able to display commands using search flags for command entered during a specific time.

Six fields separated by spaces or tabs in the following form. minute 0 through 59 hour 0 through 23 day_of_month 1 through 31 month 1 through 12 weekday 0 through 6 for Sunday through Saturday

1. Display command entered after 6:30 on the current day. history -t 30 6 * * *

2. Display c...