LinuxQuestions.org
Help answer threads with 0 replies.
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 08-30-2010, 02:16 AM   #1
kain_xiami
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
Unhappy I can't find my doucument


hello
Today, I can't find my document where I am coding in yesterday, through "history" command, I am sure the path is right,
to my surprise, yesterday I copy the whole /Document to my HDD,but I can't find it in it either.
Thank you for your help, the code is for my course design, it is important for me
 
Old 08-30-2010, 02:39 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,073

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Assuming you know at least part of its name you could try to use the "locate" or "find" commands. There are GUI tools as well, but I hardly use them so I can't really suggest any for you to use.

Examples:

Code:
locate <part_of_filename>
Code:
find / -iname <beginning_of_filename>\*
If you can't find anything then the thing looks bad.

About your backup. I assume you copied everything to an external drive, a pen drive or something like that. Maybe the problem is that you did not unmount it correctly. If you don't unmount your disks before unplugging them then things like this will happen, just like when you don't use the safe unplugging feature in Windows. When you unmount a disk you are making sure that everything that's cached will be dumped to disk. Only when your OS says that the disk is umounted should you unplug your disk physically.
 
Old 08-30-2010, 03:28 AM   #3
kain_xiami
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you ,use command "find /home/Document -mtime -2", I find another copy in other place, I can use it in litte change
 
Old 08-30-2010, 03:48 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Just to clarify:
Locate only works, if you run updatedb.
Updatedb will make a database of all files on the disk.
So make sure the db is up to date.

Kind regards.
 
  


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] Find URL in Debian package index via awk/sed (=find a line, then search from there) maddes.b Linux - Software 11 06-28-2013 07:37 AM
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 06:19 AM
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 05:55 PM
Single find command to find multiple files? thok Linux - Newbie 7 01-31-2009 04:45 PM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 AM.

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