Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

how to find a file or folder in linux with locate

How to find a file or folder in linux with locate
First of all it is better you update your locate db . to do this run this command :


It may take several minutes.

Now to find your file just run :

locate [file or folder name]

To install locate in linux you can use yum command if you have it installed.

to install locate with yum run this command as root :

yum install slocate -y

you also can install it with apt-get (ubutnu) and …

sudo apt-get install slocate

Dinesh Kumar Mohanty
Ultra Web Solutions®
Bhubaneswar, Odisha, India.

UltratechHost - Your One Stop Offshore & Onshore Hosting Provider
Server Locations : Netherlands, Germany, Russia, Singapore & USA
Service Offers: Shared hosting | Reseller hosting | Cloud server | Dedicated server | VPS Hosting

Forum Jump:

Users browsing this thread: 1 Guest(s)