[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

An explanation of how to use the locate command on a Mac, which allows you to search for files quickly!

Mac

My name is Ito, and I'm an infrastructure engineer who uses both Mac and Windows.

When it comes to file search functions on Macs, Spotlight search is the best! However, using the Spotlight function alone, you can't find configuration files in deep layers...

The "locate" command can be used in such cases. You can create an index database of files and search files quickly.
Although it is necessary to create and update the file index database, it is much faster compared to the find command.
By the way, the find command searches and displays files in real time, so it's not that fast.

So let's use the locate command to find the file! But I thought that, I couldn't use the locate command right away on my Mac...
This time, I'll show you how to use the locate command on my Mac.

locate on Mac

I got mad at this kind of thing.
first-locate
Well, I think that since I haven't used the updatedb command, I'm told that there's no updatedb command...

updatedb

Then, read again what is written in the locate command.

WARNING: The locate database (/var/db/locate.database) does not exist. To create the database, run the following command: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist Please be aware that the database can take some time to generate; once the database has been created, this message will no longer appear.

A simple translation

Note! locate database does not exist.
To create a database, execute the following command.

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

That's what it means. It wasn't the updatedb command.
So let's try doing the command as you say it.

I was worried after a moment, so I did it again.

launchctl

It seems like a database is being created behind the scenes.

It depends on the capacity of your Mac, so I can't say for sure, but try using the locate command again after about 5 minutes.

after-locate

The locate command returns results.
Isn't there rsyncd.conf? I'll write another article about this.

Now you can find library files that cannot be found even with the Spotlight feature!

If you want to consult a cloud professional

At Beyond, we use the technical capabilities we have cultivated as a multi-cloud integrator and managed service provider (MSP) since our founding to design, build, and migrate using various cloud/server platforms such as AWS, GCP, Azure, and Oracle Cloud. I went there.

We provide custom-made cloud/server environments that are optimized for customers according to the specifications and functions of the systems and applications they require, so if you are interested in the cloud, please feel free to contact us. .

● Cloud/server design/construction
● Cloud/server migration/migration
● Cloud/server operation, maintenance, and monitoring (24 hours a day, 365 days a year)

If you found this article helpful , please give it a like!
0
Loading...
0 votes, average: 0.00 / 10
2,725
X facebook Hatena Bookmark pocket
[Webinar] Introduction to Multi-Cloud: Which cloud is best for your business? Get the latest information on the 8 major clouds!

[Webinar] Introduction to Multi-Cloud: Which cloud is best for your business? Get the latest information on the 8 major clouds!

[Webinar] From the operational structure to specific steps! A complete overview of cloud server operation and maintenance

[Webinar] From the operational structure to specific steps! A complete overview of cloud server operation and maintenance

The person who wrote this article

About the author