Originally Posted by sujithspillai90
It didnt helped me...still I am seeing the history output with time only. Is there any other options.
I am sorry if I misunderstood it, but we've just suggested you that how can you set a variable in C and K shells. However, let's know what exactly you want to do?
If your concern is just to check the history of commands for a particular user, then check that user's /home/username/.bash_history
file. On the other hand, you can check your systems various logs (i.e. /var/log/... files) to find out who and what a user did on your server.
~$ setenv HISTTIMEFORMAT "%d/%m/%y %T "
Will just save a string (i.e. %d/%m/%y %T) in HISTTIMEFORMAT variable, and nothing else. Also using the history
command in C shell you will be able to see what command was run at what time.