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
  • 193,181
  • 53
  • 473
  • 722
beginh
  • 131
  • 1
  • 2
  • 5

2 Answers2

2

It seems you forgot the -name keyword :

find / -name "*partname*"
manu190466
  • 121
  • 2
1

Try with locate command. Open terminal and write:

locate <partname>
Eric Carvalho
  • 53,609
  • 102
  • 137
  • 162
NonStandardModel
  • 3,350
  • 7
  • 27
  • 45
  • 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