I would type: cd; find . -name "xyz" -type f -print That's searching my home directory. If I wanted to search the whole filesystem, it could take a while. I would type: find / -name "xyz" -type f -print If I think it's in /usr I would type: find /usr -name "xyz" -type f -print
The "-print" is usually default on linux so you can leave it out (but don't leave it out on Unix). Instead of "-print", try experimenting with "-ls" which will give you more information about the file. - Jill. -----Original Message----- From: Simon Bryan [mailto:[EMAIL PROTECTED] Sent: Monday, 22 November 2004 11:30 AM To: [EMAIL PROTECTED] Subject: [SLUG] find ot locate binary Hi, If I just want to 'find' or 'locate' a file called xyz rather than all directories and filenames that contain that string what would I enter at the command line? -- Simon Bryan IT Manager OLMC Parramatta -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html ---------------------------------------------------------------------- IMPORTANT NOTICES This email (including any documents referred to in, or attached, to this email) may contain information that is personal, confidential or the subject of copyright or other proprietary rights in favour of Aristocrat, its affiliates or third parties. This email is intended only for the named addressee. Any privacy, confidence, copyright or other proprietary rights in favour of Aristocrat, its affiliates or third parties, is not lost because this email was sent to you by mistake. If you received this email by mistake you should: (i) not copy, disclose, distribute or otherwise use it, or its contents, without the consent of Aristocrat or the owner of the relevant rights; (ii) let us know of the mistake by reply email or by telephone (+61 2 9413 6300); and (iii) delete it from your system and destroy all copies. Any personal information contained in this email must be handled in accordance with applicable privacy laws. Electronic and internet communications can be interfered with or affected by viruses and other defects. As a result, such communications may not be successfully received or, if received, may cause interference with the integrity of receiving, processing or related systems (including hardware, software and data or information on, or using, that hardware or software). Aristocrat gives no assurances in relation to these matters. If you have any doubts about the veracity or integrity of any electronic communication we appear to have sent you, please call +61 2 9413 6300 for clarification. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
