当前位置: 首页 > news >正文

Linux命令-Searching-locate

1 需求


2 语法

> locate --help
Usage: locate [OPTION]... [PATTERN]...
Search for entries in a mlocate database.-A, --all              only print entries that match all patterns-b, --basename         match only the base name of path names-c, --count            only print number of found entries-d, --database DBPATH  use DBPATH instead of default database (which is/var/lib/mlocate/mlocate.db)-e, --existing         only print entries for currently existing files-L, --follow           follow trailing symbolic links when checking fileexistence (default)-h, --help             print this help-i, --ignore-case      ignore case distinctions when matching patterns-p, --ignore-spaces    ignore punctuation and spaces when matching patterns-t, --transliterate    ignore accents using iconv transliteration whenmatching patterns-l, --limit, -n LIMIT  limit output (or counting) to LIMIT entries-m, --mmap             ignored, for backward compatibility-P, --nofollow, -H     don't follow trailing symbolic links when checking fileexistence-0, --null             separate entries with NUL on output-S, --statistics       don't search for entries, print statistics about eachused database-q, --quiet            report no error messages about reading databases-r, --regexp REGEXP    search for basic regexp REGEXP instead of patterns--regex            patterns are extended regexps-s, --stdio            ignored, for backward compatibility-V, --version          print version information-w, --wholename        match whole path name (default)Report bugs to https://pagure.io/mlocate.

3 示例


4 参考资料

http://www.lryc.cn/news/575399.html

相关文章:

  • Docker compoes与私有仓库部署
  • 基于vue3+ByteMD快速搭建自己的Markdown文档编辑器
  • Midscene.js:使用 LLMs.txt 快速生成 AI 自动化测试用例「喂饭教程」
  • [Andrej Karpathy] 大型语言模型作为新型操作系统
  • 华为OD 机试 2025-黑板上色
  • 【25软考网工】第十章 网络规划与设计(2)网络规划与分析、网络结构与功能
  • 如何进行 iOS App 混淆加固?IPA 加壳与资源保护实战流程
  • 如何将视频从 iPhone 发送到 Android 设备
  • 数字孪生技术驱动UI前端变革:从静态展示到动态交互的飞跃
  • uniapp 和原生插件交互
  • 小程序入门:理解小程序页面配置
  • vue + vue-router写登陆验证的同步方法和异步方法,及页面组件的分离和后端代码
  • 命名数据网络 | 数据包(Data Packet)
  • chili3d笔记23 正交投影3d重建笔记4 点到线2
  • 【NLP】使用 LangGraph 构建 RAG 的Research Multi-Agent
  • house of apple2
  • Linux系统(信号篇):信号的产生
  • 【Pandas】pandas DataFrame shift
  • Ubuntu下布署mediasoup-demo
  • 黑马JVM解析笔记(四):Javap图解指令流程,深入理解Java字节码执行机制
  • Redis 为什么选用跳跃表,而不是红黑树
  • 《聊一聊ZXDoc》之汽车标定、台架标定、三高标定
  • 【STM32】外部中断
  • 【C++11】右值引用和移动语义
  • gRPC 使用(python 版本)
  • 2025学年湖北省职业院校技能大赛 “信息安全管理与评估”赛项 样题卷(五)
  • Axure版TDesign 组件库-免费版
  • MQTT 和 HTTP 有什么本质区别?
  • 如何将 Memfault 固件 SDK 集成到使用 Nordic 的 nRF Connect SDK(NCS)的项目中
  • 数据结构进阶 - 第四,五章 串、数组和广义表