LoginSignup
0
0

More than 5 years have passed since last update.

locateコマンドが使えないとき

Last updated at Posted at 2016-10-19

コマンドを実施

locateコマンドを使うと、下記のようなエラーがでた。

locate: stat () `'/var/lib/mlocate/mlocate.db' できません: そのようなファイルやディレクトリはありません

実際mlocate.dbが存在しない。
なので、下記コマンドを打つ。(rootユーザーで)

updatedb

→できるようになる。

※CentOS7で発生。

0
0
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
0
0