10-07-2013
May be not without preparation. man bash:
Quote:
HISTTIMEFORMAT If this variable is set and not null, its value is used as a format string for
strftime(3) to print the time stamp associated with each history entry displayed by the history builtin. If
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can we display the Date/time stamp in history command
Ex:
$history
output
-----------
vi pr.sh
ksh -x pr.sh
ksh -n pr.sh
nhoup ksh pr.sh &
nohup ksh pr.sh &
i want the output like this
Tue Mar 14 17:18:57 GMT 2006 vi pr.sh HOSTNAME
is it possible sir ???? (3 Replies)
Discussion started by: vastare
3 Replies
2. UNIX for Advanced & Expert Users
Hi,
Is there any way to view process history. Suppose I had killed a few procs yesterday and now I want to see what were the procs that were running yesterday? (2 Replies)
Discussion started by: King Nothing
2 Replies
3. Shell Programming and Scripting
I wan to view files in a directory of a specific date. For example a log directory has log files . I want to view the list of the files which were generated on 01-May-2011.
Is there any option/proces to perform it?? (1 Reply)
Discussion started by: mady135
1 Replies
4. Shell Programming and Scripting
Hi All,
Can i get the history command with date, so that i can know which command run at what time???
need it on urjent basis
Thanks (6 Replies)
Discussion started by: aish11
6 Replies
5. Solaris
How to find out history of specific command run by all users in solaris server ? (1 Reply)
Discussion started by: piyus
1 Replies
6. UNIX for Dummies Questions & Answers
I want to get list of linux commands used on Jan 01 2014 with the help of HISTORY command or some other linux commands,.
Kindly help. (3 Replies)
Discussion started by: karthick nath
3 Replies
7. Shell Programming and Scripting
HTML Code
archive_history() { HISTORYOLD=${HISTFILE}.archive CURTIME=`date` CURTTY=`tty` IP=$(echo $SSH_CLIENT | awk '{print $1}') if ; then echo "#-${HOSTNAME}-- ${CURBASHDATE} - ${CURTIME} ($CURTTY) ${USER} ${IP}----" >> $HISTORYOLD history... (2 Replies)
Discussion started by: rehantayyab82
2 Replies
8. Shell Programming and Scripting
HTML Code:
archive_history() { HISTORYOLD=${HISTFILE}.archive CURTIME=`date` CURTTY=`tty` IP=$(echo $SSH_CLIENT | awk '{print $1}') if ; then echo "#-${HOSTNAME}-- ${CURBASHDATE} - ${CURTIME} ($CURTTY) ${USER} ${IP}----" >> $HISTORYOLD history... (0 Replies)
Discussion started by: rehantayyab82
0 Replies
9. UNIX and Linux Applications
Hello,
Is there an autosys command like autorep but instead of searching based on job name, I want to search using the start or end date
For example, I want to find out which jobs ran today 02/01/2016 and it would be even better if I could search either by start or end date depending on what... (0 Replies)
Discussion started by: crsuribe
0 Replies
10. UNIX for Beginners Questions & Answers
hi unix expert
how can i see the history of command that i entered in past?
history (1 Reply)
Discussion started by: abdossamad2003
1 Replies