Link to home
Start Free TrialLog in
Avatar of deklinm
deklinmFlag for United States of America

asked on

File Name Search in Ubuntu

From the command line how do i search for a specific file name in ubuntu?
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deklinm

ASKER

so i am tying to local a file called photo.jpg.

When i run the below syntax i receive an unknown predicate response.

find /start/dir -type f -name photo.jpg -print

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try this

find . -type f -name photo.jpg

This would find for all the files under the current directory and all the sub directories.

May be you didn't change /start/dir.  It was just an example by WMP.
simply try
locate photo.jpg

If you added the file recently, try updatedb as an admin then enter the above command