Sponsored Content
Full Discussion: Finding deleted files
Top Forums Shell Programming and Scripting Finding deleted files Post 302102650 by Krrishv on Friday 12th of January 2007 12:28:28 AM
Old 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

Recover deleted files

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

restoring deleted files

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

recover deleted files

How to recover deleted files in AIX ? (1 Reply)
Discussion started by: vjm
1 Replies

4. Shell Programming and Scripting

finding duplicate files by size and finding pattern matching and its count

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

Retrieving deleted files

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

how to restore the deleted files

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

Any way to retrieve deleted files?

: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

deleted all files - rm *

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

Need help with deleted files

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

Who deleted my files

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
GZEXE(1)                                                      General Commands Manual                                                     GZEXE(1)

NAME
gzexe - compress executable files in place SYNOPSIS
gzexe name ... DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a penalty in performance). For example if you execute ``gzexe /usr/bin/gdb'' it will create the following two files: -rwxr-xr-x 1 root root 1026675 Jun 7 13:53 /usr/bin/gdb -rwxr-xr-x 1 root root 2304524 May 30 13:02 /usr/bin/gdb~ /usr/bin/gdb~ is the original file and /usr/bin/gdb is the self-uncompressing executable file. You can remove /usr/bin/gdb~ once you are sure that /usr/bin/gdb works properly. This utility is most useful on systems with very small disks. OPTIONS
-d Decompress the given executables instead of compressing them. SEE ALSO
gzip(1), znew(1), zmore(1), zcmp(1), zforce(1) CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the PATH environment variable to find gzip and some standard utilities (basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail). BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases, using chmod or chown. GZEXE(1)
All times are GMT -4. The time now is 11:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy