01-12-2007
I dont have any recovery command in hp-ux or RHLinux. which flavour of unix is this
$ ls -ltr re*
-r-xr-xr-x 1 bin bin 24576 Mar 11 2004 rev
-r-xr-xr-x 2 bin bin 90112 Mar 11 2004 red
-r-xr-xr-x 2 bin bin 36864 Mar 11 2004 reset
-r-xr-xr-x 1 bin bin 151 Mar 26 2004 read
lr-xr-xr-t 1 root sys 22 Aug 10 08:35 revck -> /usr/old/usr/
bin/revck
lr-xr-xr-t 1 root sys 16 Aug 10 08:35 renice -> /usr/sbin/re
nice
-r-sr-xr-x 1 root bin 53248 Oct 17 09:49 remsh
-r-sr-xr-x 1 root bin 32768 Oct 17 09:49 rexec
-r-xr-xr-x 1 bin bin 225280 Nov 29 20:15 readmail
$ pwd
/usr/bin
$ uname -a
HP-UX td191 B.11.23 U 9000/800 1294588977 unlimited-user license
Linux :
$ ls -ltr re*
-r-xr-xr-x 1 bin bin 24576 Mar 11 2004 rev
-r-xr-xr-x 2 bin bin 90112 Mar 11 2004 red
-r-xr-xr-x 2 bin bin 36864 Mar 11 2004 reset
-r-xr-xr-x 1 bin bin 151 Mar 26 2004 read
lr-xr-xr-t 1 root sys 22 Aug 10 08:35 revck -> /usr/old/usr/
bin/revck
lr-xr-xr-t 1 root sys 16 Aug 10 08:35 renice -> /usr/sbin/re
nice
-r-sr-xr-x 1 root bin 53248 Oct 17 09:49 remsh
-r-sr-xr-x 1 root bin 32768 Oct 17 09:49 rexec
-r-xr-xr-x 1 bin bin 225280 Nov 29 20:15 readmail
$ pwd
/usr/bin
$ uname -a
HP-UX td191 B.11.23 U 9000/800 1294588977 unlimited-user license
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a Unix tool, like in Novell, to recover accidentally deleted files? (2 Replies)
Discussion started by: kuultak
2 Replies
2. UNIX for Dummies Questions & Answers
I had a user run, by accident, the following line command on our UNIX server:
rm -f /usr/*
This apparently deleted some needed files on your system. Having very limited knowledge in UNIX, I thought I would ask the group if anyone knows how I can recover these file?
The version of UNIX is... (3 Replies)
Discussion started by: mikem
3 Replies
3. AIX
How to recover deleted files in AIX ? (1 Reply)
Discussion started by: vjm
1 Replies
4. Shell Programming and Scripting
Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies
5. UNIX for Dummies Questions & Answers
I mistakenly deleted a script from the UNIX server. Is there any command i can type that i will retrieve my script? (3 Replies)
Discussion started by: manna
3 Replies
6. Shell Programming and Scripting
hi,
if i delete a file from /home/san/abc.cpp in linux/unix
and i want to restore it back
how to do that ? (3 Replies)
Discussion started by: mail2sant
3 Replies
7. UNIX for Dummies Questions & Answers
:eek:
I accidently removed some files using 'rm'. Is there any way to retrieve these files if they were deleted through 'rm'? (1 Reply)
Discussion started by: orahi001
1 Replies
8. UNIX for Advanced & Expert Users
Hi All,
I am using Fedora Core and Windows Xp. I deleted all the files from root
directory. When i am trying to restart the computer it showing some grub > prompt. What i will do ? I have lots of data in XP OS.
Please help me
i used
# rm * (8 Replies)
Discussion started by: pritish.sas
8 Replies
9. Linux
Hello. I am having a problem and I was wondering if I could get some help from here. I changed into a directory with the cd command and I wanted to delete a folder and all of its subdirectories, so I went ahead and did a rm --recursive * in my current directory to realize that I was in the wrong... (3 Replies)
Discussion started by: jonnydadesigner
3 Replies
10. AIX
Just looking for some guidance on how to figure out who might have deleted some files off one of my systems.
These files are not root owned files so could be deleted by a handful of folks in the group responsible for these files besides the root users.
Anyway I have been tasked with trying to... (1 Reply)
Discussion started by: juredd1
1 Replies
LEARN ABOUT OPENDARWIN
history
history(n) Tcl Built-In Commands history(n)
__________________________________________________________________________________________________________________________________________________
NAME
history - Manipulate the history list
SYNOPSIS
history ?option? ?arg arg ...?
_________________________________________________________________
DESCRIPTION
The history command performs one of several operations related to recently-executed commands recorded in a history list. Each of these
recorded commands is referred to as an ``event''. When specifying an event to the history command, the following forms may be used:
[1] A number: if positive, it refers to the event with that number (all events are numbered starting at 1). If the number is negative,
it selects an event relative to the current event (-1 refers to the previous event, -2 to the one before that, and so on). Event 0
refers to the current event.
[2] A string: selects the most recent event that matches the string. An event is considered to match the string either if the string
is the same as the first characters of the event, or if the string matches the event in the sense of the string match command.
The history command can take any of the following forms:
history
Same as history info, described below.
history add command ?exec?
Adds the command argument to the history list as a new event. If exec is specified (or abbreviated) then the command is also exe-
cuted and its result is returned. If exec isn't specified then an empty string is returned as result.
history change newValue ?event?
Replaces the value recorded for an event with newValue. Event specifies the event to replace, and defaults to the current event
(not event -1). This command is intended for use in commands that implement new forms of history substitution and wish to replace
the current event (which invokes the substitution) with the command created through substitution. The return value is an empty
string.
history clear
Erase the history list. The current keep limit is retained. The history event numbers are reset.
history event ?event?
Returns the value of the event given by event. Event defaults to -1.
history info ?count?
Returns a formatted string (intended for humans to read) giving the event number and contents for each of the events in the history
list except the current event. If count is specified then only the most recent count events are returned.
history keep ?count?
This command may be used to change the size of the history list to count events. Initially, 20 events are retained in the history
list. If count is not specified, the current keep limit is returned.
history nextid
Returns the number of the next event to be recorded in the history list. It is useful for things like printing the event number in
command-line prompts.
history redo ?event?
Re-executes the command indicated by event and return its result. Event defaults to -1. This command results in history revision:
see below for details.
HISTORY REVISION
Pre-8.0 Tcl had a complex history revision mechanism. The current mechanism is more limited, and the old history operations substitute and
words have been removed. (As a consolation, the clear operation was added.)
The history option redo results in much simpler ``history revision''. When this option is invoked then the most recent event is modified
to eliminate the history command and replace it with the result of the history command. If you want to redo an event without modifying
history, then use the event operation to retrieve some event, and the add operation to add it to history and execute it.
KEYWORDS
event, history, record
Tcl history(n)