cmd to excecute a global search for a file

  • bugsdeepak
  • Novice
  • Novice
  • bugsdeepak
  • Posts: 26
  • Loc: Banglore-India

Post 3+ Months Ago

Hi all,

The 'find' command can be used to locate a file in the current directory. How to search for a file in a specified directory or right from the root.

"We are not perfect. We expect every thing to be perfect"
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2696
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago


There's only million and 1 ways to accomplish this.

Try this one,

to search entire drive;
find / -name <name of file>

to search current or static directory;
find /<path>/<to>/<directory>/ -name <filename>
  • PsyckBoy
  • Graduate
  • Graduate
  • PsyckBoy
  • Posts: 204
  • Loc: SoCal

Post 3+ Months Ago

Much faster to use 'locate' for a system wide search.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 40 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.