|
||
|
|
|||||||
| Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis. |
|
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).
|
![]() |
|
|
Thread Tools |
Knoppix's search feature
I dunno if this should go in the Software form, or Help Desk, but since I am technically asking for help, I guess it goes here.
Basically, my father wanted me to search an old computer of his that had a bad hard drive (this is a different computer from my last post BTW). I was successful in doing it, but had to almost by brute force, searching each file and folder until I found it. The way I was able to search through the files and folders was by using Knoppix (since, again, his HDD is on the blink). Now, the reason for having to search by 'brute force' is Knoppix's Find Files and Folders program failed to find the file, Resume 2 after having a search value of Resume. After I found the file, I even directed the search to the folder the file was in, and changed the search value to Resume 2, which was still not found. My question is, where am I going wrong with this? Do I need to give the exact name and extension? Is there a way around this (as while I am lucky to have found the files my dad wanted this time from brute force, I shudder if I were to have to do it for someone else or even myself, later) restriction (another program, an option I missed, etc)? Thanks. Most amazing jew boots |
Use the standard linux find command to search your files:
cd /mnt/mountpoint (change directory to the mountpoint of the filesystem in question) find . -name "*Resume*" And doing a search on a bad hd is generally not a good idea. There's nowhere I can't reach. |
True...but I was given the clear to try to search anyway. I mean, originally I mentioned that I could repair the OS but doing so would most likely screw up the HDD, in which I was told to try anyway...
So, to understand you correctly... cd /mnt/mountpoint/hda1 (or hda2) find . -name "*resume*" I understand just about everything save for the period between find and -name. What is that for? This thing is sticky, and I don't like it. I don't appreciate it. |
You could also do find /mnt/mountpoint -name "*resume*"
The period is the current working directory, namely the dir you're currently 'inside'. Supplying the period to find only tells it to begin the search in the current directory. I don't think you also want to search inside the fs on the Knoppix disc. Even more information with man find (if Knoppix has manual pages onboard the disc) I don't know how Knoppix names the mountpoints, maybe they're in /mnt or maybe also in /media (if some automounting daemon is doing the whole thing). Also keep in mind that linux is case-sensitive, so searching for "*resume*" reveals only files like "resume download.txt", etc. You can use -iname instead of -name in find to do a case-insensitive search. Most amazing jew boots |
Ah yes, that's right. And .. means "Go up one directory". I really need to get a Linux distro on one of my computers for good and get familar with it again.
Thanks a lot! I was speaking idiomatically. |