Sponsored Content
Full Discussion: history command with date
Top Forums Shell Programming and Scripting history command with date Post 302593476 by aish11 on Friday 27th of January 2012 02:26:38 AM
Old 01-27-2012
Quote:
Originally Posted by ahamed101
After that, you need to execute the history command to see the history with time stamp!
If you need it always, better to add this in ~ /.profile or any other appropriate place!

--ahamed

Its showing me todays current date only..... not exact time at what the command is executed
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Date/Time in history command

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 Dummies Questions & Answers

using command history

Hi All. Suppose I am in a "verylongpath" directory and I type "gedit thisfile". At a later stage, the command is accessible from the hystory, but it is useless if I have moved to another directory. The same applies to "cd myfolder", etc. Is there a way to instruct shell history to... (1 Reply)
Discussion started by: bruno69
1 Replies

3. UNIX for Dummies Questions & Answers

The history command: See other users command history

Can anyone tell this: If two users are logged into the same server from different locations. Is there a way to see the history command of the other user? I tried the history command, but it is showing me only the commands I used. Thanks in advance for your help. Iamnew2solaris (1 Reply)
Discussion started by: iamnew2solaris
1 Replies

4. AIX

History command

How to get the other user history file. I would like to check the commands issues from my teammate. (1 Reply)
Discussion started by: Mariappan.m
1 Replies

5. Shell Programming and Scripting

Need to view command in history for specific date

hi i want to find a command in history for specific date . is it possible that i can view ?? (1 Reply)
Discussion started by: scriptor
1 Replies

6. UNIX for Dummies Questions & Answers

Want to get list of Linux commands used on specific date through HISTORY command

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. UNIX for Dummies Questions & Answers

Command history

hi i want to show my history command in UNIX solaris ( bash shell ),, i tried this command ( HISTTIMEFORMAT="%d/%m/%y %T " ) but it's not working with me ,, is there any restricted condition to do this command any one know why it's not working to me .. thanks (10 Replies)
Discussion started by: mondo32
10 Replies

8. Shell Programming and Scripting

History of all the users in single file with command , date . time , ip and user

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

9. Shell Programming and Scripting

History of all the users in single file with command , date . time , ip and user

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

10. UNIX for Beginners Questions & Answers

History of command by date

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
BACKUP_VOLINFO(8)					       AFS Command Reference						 BACKUP_VOLINFO(8)

NAME
       backup_volinfo - Displays a volume's dump history from the Backup Database

SYNOPSIS
       backup volinfo -volume <volume name> [-localauth]
	   [-cell <cell name>] [-help]

       backup voli -v <volume name>
	   [-l] [-c <cell name>] [-h]

DESCRIPTION
       The backup volinfo command displays a dump history of the specified volume, reporting information such as the date on which the volume was
       dumped and the tapes that contain it. Include the ".backup" extension on the volume name if the backup version of the volume was dumped.

OPTIONS
       -volume <volume name>
	   Names the volume for which to display the dump history. Include the ".backup" or ".readonly" extension if the backup or read-only
	   version of the volume was dumped.

       -localauth
	   Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
	   the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
	   details, see backup(8).

       -cell <cell name>
	   Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

OUTPUT
       The output includes a line for each Backup Database dump record that mentions the specified volume, order from most to least recent. The
       output for each record appears in a table with six columns:

       dumpID
	   The dump ID of the dump that includes the volume.

       lvl The depth in the dump hierarchy of the dump level at which the volume was dumped. A value of 0 indicates a full dump. A value of 1 or
	   greater indicates an incremental dump made at the specified depth in the dump hierarchy.

       parentid
	   The dump ID of the dump's parent dump. A value of 0 indicates a full dump, which has no parent; in this case, the value in the "lvl"
	   column is also 0.

       creation date
	   The date and time at which the Backup System started the dump operation that created the dump.

       clone date
	   For a backup or read-only volume, the time at which it was cloned from its read/write source. For a read/write volume, the same as the
	   value in the "creation date" field.

       tape name
	   The name of the tape containing the dump: either the permanent tape name, or an AFS tape name in the format
	   volume_set_name.dump_level_name.tape_index where volume_set_name is the name of the volume set associated with the initial dump in the
	   dump set of which this tape is a part; dump_level_name is the name of the dump level at which the initial dump was backed up;
	   tape_index is the ordinal of the tape in the dump set. Either type of name can be followed by a dump ID in parentheses; if it appears,
	   it is the dump ID of the initial dump in the dump set to which this appended dump belongs.

EXAMPLES
       The following example shows part of the dump history of the Backup volume "user.smith.backup":

	  % backup volinfo -volume user.smith.backup
	  DumpID    lvl parentID  creation date    clone date	    tape name
	  924600000 1	924427600 04/20/1999 05:20 04/20/1999 05:01 user_incr_2 (924514392)
	  924514392 1	924427600 04/19/1999 05:33 04/19/1999 05:08 user_incr_2
	  924427600 0		0 04/18/1999 05:26 04/18/1999 04:58 user_full_6
	      .     .	   .	     .	     .	     .	    .	      .
	      .     .	   .	     .	     .	     .	    .	      .

PRIVILEGE REQUIRED
       None

SEE ALSO
       backup(8), backup_dumpinfo(8), backup_volrestore(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							 BACKUP_VOLINFO(8)
All times are GMT -4. The time now is 11:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy