2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MACでロケートコマンドを使用する。

2
Last updated at Posted at 2014-06-25

MACでロケートコマンドを使えれば、
なにかと便利なので、導入するまでの手順を記載してみました。

まず簡単に macのキーワードを探してみる。
locate mac

コンソール
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.

ocate.database がありませんメッセージが表示される。
メッセージの通り、下記を実行する
$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

例えば、readme.txtの名前を探したいときは?
locate readme.txt

検索DBの更新は以下のコマンドで、
/usr/libexec/locate.updatedb

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?