最終更新:2018-07-24 (火) 16:57:50 (2095d)  

locate
Top / locate

EXAMPLES

To search for a file named exactly NAME (not *NAME*), use

locate -b '\NAME'

Because \ is a globbing character, this disables the implicit replacement of NAME by *NAME*.

オプション

-b--basenameファイル名のみ検索
-i--ignore-case大文字小文字を無視

Mac OS X

  • 有効化
    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.
     

Ubuntu/パッケージ

更新