0

I want to find in the system a file, and I know part name of it. How could I do that? I tried unsuccessfully the command:

find / "*partname*"

The problem is probably very easy however I cannot find a decent tutorial on searching files in linux. Such one that explains searching in whole system files, in subfolders, recursively, for part of specific expression(s) or excluding. Please tell me what command solves my problem and if you know a good tutorial so that I can understand how to use various parameters for searching, post a link. Thank you so much.

muru
  • 197,895
  • 55
  • 485
  • 740
beginh
  • 131

2 Answers2

3

It seems you forgot the -name keyword :

find / -name "*partname*"
1

Try with locate command. Open terminal and write:

locate <partname>
Eric Carvalho
  • 54,385
  • 1
    If you want to use a locate command you the database of files has to be present. You can create or update the database with updatedb and then you can use locate. – nobody Apr 06 '16 at 19:37
  • 1
    Actually, it is: sudo updatedb. – chili555 Apr 06 '16 at 20:01