locate コマンド

Ubuntu のターミナルの癖で locate を使ってしまうが,Mac では標準装備ではないらしい.

% locate hoge

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.

上の指示通りやれば使えるようになる.


Front page   Edit Diff Attach Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2021-10-24 (Sun) 13:17:30 (34d)