07-14-2019
Yes, you can get the history of your command using history
But more importantly is the answer to this simple question, "What exact operating system, version and shell are you using?"
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 Dummies Questions & Answers
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
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. 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. AIX
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
6. Shell Programming and Scripting
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
7. 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
8. UNIX for Dummies Questions & Answers
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
9. 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
10. 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
LEARN ABOUT DEBIAN
history
HISTORY(5) File Formats Manual HISTORY(5)
NAME
history - record of current and recently expired Usenet articles
DESCRIPTION
The file /var/lib/news/history keeps a record of all articles currently stored in the news system, as well as those that have been received
but since expired. In a typical production environment, this file will be many megabytes.
The file consists of text lines. Each line corresponds to one article. The file is normally kept sorted in the order in which articles
are received, although this is not a requirement. Innd(8) appends a new line each time it files an article, and expire(8) builds a new
version of the file by removing old articles and purging old entries.
Each line consists of two or three fields separated by a tab, shown below as :
<Message-ID> date
<Message-ID> date files
The Message-ID field is the value of the article's Message-ID header, including the angle brackets.
The date field consists of three sub-fields separated by a tilde. All sub-fields are the text representation of the number of seconds
since the epoch -- i.e., a time_t; see gettimeofday(2). The first sub-field is the article's arrival date. If copies of the article are
still present then the second sub-field is either the value of the article's Expires header, or a hyphen if no expiration date was speci-
fied. If an article has been expired then the second sub-field will be a hyphen. The third sub-field is the value of the article's Date
header, recording when the article was posted.
The files field is a set of entries separated by one or more spaces. Each entry consists of the name of the newsgroup, a slash, and the
article number. This field is empty if the article has been expired.
For example, an article cross-posted to comp.sources.unix and comp.sources.d that was posted on February 10, 1991 (and received three min-
utes later), with an expiration date of May 5, 1991, could have a history line (broken into two lines for display) like the following:
<312@litchi.foo.com> 666162000~673329600~666162180
comp.sources.unix/1104 comp.sources.d/7056
In addition to the text file, there is a dbz(3z) database associated with the file that uses the Message-ID field as a key to determine the
offset in the text file where the associated line begins. For historical reasons, the key includes the trailing byte (which is not
stored in the text file).
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.12, dated 1996/09/06.
SEE ALSO
dbz(3z), expire(8), innd(8), news-recovery(8).
HISTORY(5)