How can I check if a physical file is located in index file?  For example:  Let's say we have 5 files in the folder C:\Users.  I have a file with a link to this location  C:\Users\1.txt C:\Users\2.txt C:\Users\3.txt C:\Users\4.txt  We can see that we are missing 1 file from C:\Users in that index file?  How can I do it? If you could give me some way to do it, it would be great. Is it even possible to do such thing?
6612
How do I check whether a file exists or not, without using the  statement?
85705
I have been using find command to find files on my 1 tb hard disk. it takes very long. then I used locate which proved to be faster with regular update using updatedb. But the limitation of locate is that I cannot find files with certain size or modified/created time. can you suggest me any ideas on how to find files at more speed or in that case how to pipe output of locate command in a way that all other information like size, time, etc. can be displayed or redirected to a file.
15969
Is there any way I can search based on the last three digits of a file name?  I have a file with many invoices that are easy to reference with the last three numbers. Is there any way I can search something like *765 to search for ends with 765  Another example.. sometimes files are prefixed with a 0, sometimes not.. 093241251 vs 93241251 and if I just search 93241251 it will not find the 0 prefix version
60797
A long time ago, I remember hiding some really personal files on my computer. Something that nobody could ever find, so I buried them down pretty darn good.  Now to my problem, I don't remember where.   Do anyone know a way to scan a drive and list all hidden folders and/or files?   I know how to view hidden files in Windows, but as far as I know, there is no way to search for them? I've been looking for a program, but I couldn't find one - and now I'm here, asking the experts. ;)  I'd really appreciate any tips.
6076
I had a directory with a file and another empty directory in it like this:  . .. file.ext folder   I did:  mv file.ext /folder   The file disappeared now, not in folder too not where it was before!   Anyway to find it back?   Thanks
54839
Suppose some file "Any File.pdf" is in the Trash (aka ~/.Trash).  How can I determine its original location?  By "original location" I mean the folder where that file would be moved to if one were to apply the "Put Back" command to it (but without actually doing so)?  (See figure below.)  (I had hoped that this information would be available through running "Get Info" on the file, but I did not find it there.)
56431
I'm going crazy...  I have a file I want to include which path is C:\Users\Matthieu\Documents\Folder withOneSpace\myFile.tex. (As you can see with the \, I'm on windows actually)  I tried the following but none works:  \input{C:/Users/Matthieu/Documents/Folder withOneSpace/myFile} \input{C:/Users/Matthieu/Documents/Folder\ withOneSpace/myFile} \input{C:/Users/Matthieu/Documents/Folder withOneSpace/myFile.tex} \input{C:/Users/Matthieu/Documents/Folder\ withOneSpace/myFile.tex}   I also tried to put the file out of the folder with a space and it works (no surprise):  \input{C:/Users/Matthieu/Documents/myFile} --&gt; Works   All I found is to put a \ before the space but it doesn't work at all. --> Please help ! :)
16296
Whenever I list the contents of a directory with a function like readdir, the returned file names also include "." and "..". I have the suspicion that these are just normal links in the file system and therefore indistinguishable from actual files, but I always have to filter them out because they are not actual objects in the directory I am listing. Is there a good reason for functions like readdir to include them? Do some operating systems or file systems contain more or different virtual file names? Is there a better way to filter them out other than by doing string comparison with "." and ".."?  Update: thank you all for answering. I suppose I always thought that things like ./ and ../ were mere conventions that could be handled by searching and replacing. I find it a bit surprising, though probably more efficient and transparent, to have them be part of the file system itself.  One question remains, though: since . and .. are arbitrary names for these links, are there file systems that use different ones?
104029
In a directory, I have files like  lazer_100506 lazer_100707 lazer_091211 lazer_110103 lazer_100406_temp lazer_100622#delete   etc  How can I get a listing of only the first four files?  $ ls lazer_...... ls: lazer_......: No such file or directory $
78726
How can i get the absolute path for a file based on the fid? Sorry if this is a repeat, I did a search but was unable to find the answer.
45287
I have thousands of files named 1.txt 2.txt and so on. Some of those files are missing. Which would be the easiest way to find out which files are missing?
67398
Windows 7 Ultimate 64bit:  I'm looking for a way to find all the files in a directory that are NOT of a specific file type or extension.  Example: I'd like to find every file that isn't an .mp3 in my music folder (and all sub folders).
113376
I've read about deleting files which "do not exist"  and got as far as del /q /s filename in command prompt.  However, the file is named COM^sv3.O[e in the browser.  but when i type in dir it =   Of which there are charaters I cant even type. Even copying from teh command prompt, as is. It still "cannot find" the file.  Any ideas on how to delete?
108578
I am a Windows user and coming from Windows with all the indexing and eternal wait times when searching for files, I find it surprising how fast does locate work or the autocompletion (that I know) work in linux.  Is there any indexing being done in the background or how is this achieved? I still have a pretty clean installation, so maybe this goes bad with time, but in Windows the moment you want to search on a folder which is not indexed you have to wait for some seconds.
14499
Recently I accidentally did rm on a set of files and it got me thinking where exactly these files end up?  That is to say, when working with a GUI, deleted files go to the Trash. What's the equivalent for rm and is there a way of undoing an rm command?
19889
I use huge data files, sometimes I only need to know the number of lines in these files, usually I open them up and read them line by line until I reach the end of the file  I was wondering if there is a smarter way to do that
47336
I want to find a text file in my hard disk which contains a specific word.  Prior to Ubuntu 12.4 I used to start in the dash an application, I think it was called "Search for file...", whose icon was a magnifying glass.I can't find that simple application any more.