airedale
01-29-2001, 12:30 AM
I forgot the command for searching... could someone please tell me how to look for a specific file?
|
Click to See Complete Forum and Search --> : searching... airedale 01-29-2001, 12:30 AM I forgot the command for searching... could someone please tell me how to look for a specific file? mka 01-29-2001, 12:35 AM Use the locate command. Before you do, update the database as root. # updatedb (should work) Then use locate and pipe it into more since many times you will get listings scrolling off the screen. $ locate <portion of filename> | more And the name airedale......reminds me U.S. naval aviation. http://www.linuxnewbie.org/ubb/smile.gif ------------------ mka George W. Bush: "I know how hard it is for you to put food on your families." airedale 01-29-2001, 01:06 AM thanks for the quick reply Airedale is actually the breed of my dog - just thought I would let you know! http://www.linuxnewbie.org/ubb/wink.gif teeitup 01-29-2001, 01:04 PM "locate" is usually the best for finding commands. There is the find command that will seach anywhere you tell it. Takes longer but can find strings of charcters if need be. find / -name "string" -print be carefull of searching root as the above example shows. It will search every file system mounted. If you mount network shares this can take a loooooong time. ------------------ Don't take life to seriously, You'll never get out alive! -Bugs Bunny- klamath 01-29-2001, 02:10 PM If you mount network shares this can take a loooooong time. No kidding - I was working at a place running Solaris, connecting to a NetApp. The admin was doing some FS maintainence, and some of the `find` commands took ~24-48 hours each. You can also try 'whereis', although I usually just use 'locate'. ------------------ - Klamath Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc) Looking for an open source project to contribute to? Check out the Tornado HTTP Server (http://sourceforge.net/projects/tornado) justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |