LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2012, 01:51 AM   #1
eshwarconsulting
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Generate list of deleted files


I copied all JPEGs from my laptop to an external drive using

find . -name "*.jpg" -exec cp '{}' ./media/Backup/pictures \;

And then deleted all of them from my laptop.

Now, I realize that I need the folder path of all the original JPEGs as the path has the important information.

I dont need to recover the files. Just need the full path of all the deleted files like this:

/home/mypc/project/1234/a.jpg
/home/mypc/project/1235/b.jpg
/home/mypc/project/1010/z.jpg

Is there a way to get this? I have root access.

Thanks in advance
 
Old 02-01-2012, 02:01 AM   #2
mayursingru
Member
 
Registered: Nov 2010
Location: Pune
Distribution: CentOS
Posts: 51

Rep: Reputation: 5
Hi,
Well you already used "find" for copying & deleting use the same for searching the same files.
Try this & let me know of it works.
Code:
 find / -name "*.jpg"
 
Old 02-01-2012, 02:10 AM   #3
eshwarconsulting
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mayursingru View Post
Hi,
Well you already used "find" for copying & deleting use the same for searching the same files.
Try this & let me know of it works.
Code:
 find / -name "*.jpg"
I have deleted all the JPG files. So, this wont return anything. I guess I will need to use some feature of a recover/undelete application without really doing the recovery. Thanks
 
Old 02-01-2012, 07:38 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Try photorec
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I need help with a script to list deleted files with dates JangoFett353 Linux - Newbie 13 03-31-2011 12:19 PM
List of deleted files Linux imran111 Linux - Server 3 03-22-2010 06:27 AM
how do i generate random list and determine size of arbitrary block of files in dir archnemesis Linux - General 2 03-05-2010 08:34 PM
generate the update list sunhui Linux - Software 1 02-20-2006 06:56 PM
generate the update list sunhui Linux - Software 0 02-17-2006 05:11 AM


All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration