`

linux locate - find files by name

阅读更多
【基本介绍】
这里我们介绍locate命令,用来查找文件。

【安装配置】
安装mlocate
yum install mlocate

生成db数据文件
[root@root ~]# updatedb 
[root@root ~]# ls /var/lib/mlocate/mlocate.db 
 /var/lib/mlocate/mlocate.db

用locate进行查找
[root@root tmp]# locate 6385.conf
/etc/redis/6385.conf



【参考引用】
https://www.digitalocean.com/community/tutorials/how-to-use-find-and-locate-to-search-for-files-on-a-linux-vps
分享到:
评论

相关推荐

    linux.chm文档

    find /home/user1 -name \*.bin 在目录 '/ home/user1' 中搜索带有'.bin' 结尾的文件 find /usr/bin -type f -atime +100 搜索在过去100天内未被使用过的执行文件 find /usr/bin -type f -mtime -10 搜索在10天内...

    grub4dos-V0.4.6a-2017-02-04更新

    已经发现的问题是执行 find,不返回 (hd0);精简 PE 加载映像文件死机。 2.解决了FDD 模式的 u 盘,执行 find 时返回 (fd0,n) 的问题。 3.修正了 menu.lst 中 0PE.ISO 的默认位置。 4.usb2.0 驱动通过菜单或...

    ehlib_vcl_src_9_3.26

    and name sum field (goCount name of field is unnecessary). TPrintDBGridEh component TPrintDBGridEh provides properties and routines for preview and print of TDBGridEh component with several ...

    EhLib 9.1.024

    and name sum field (goCount name of field is unnecessary). TPrintDBGridEh component TPrintDBGridEh provides properties and routines for preview and print of TDBGridEh component with several ...

    EhLib5.0.13 最新的ehlib源码

    By default Delphi (5, 6 and 7) places compiled files to the <Delphi path>\Projects\Bpl directory and this directory already present in the search PATH. But if you overwrite default BPL directory ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    and name sum field (goCount name of field is unnecessary). TPrintDBGridEh component TPrintDBGridEh provides properties and routines for preview and print of TDBGridEh component with several ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    and name sum field (goCount name of field is unnecessary). TPrintDBGridEh component TPrintDBGridEh provides properties and routines for preview and print of TDBGridEh component with several ...

    javacv-platform-1.3.3-src

    Locate the JAR files, select them, and click OK. Eclipse (Java SE 7 or newer): Navigate to Project > Properties > Java Build Path > Libraries and click "Add External JARs...". Locate the JAR files, ...

    Linux操作系统基础教程

    Linux 操作系统基础教程 清华大学信息学院计算机系 目 录 前言..........................................................................................................................................

    RxLib控件包内含RxGIF,全部源码及DEMO

    Query-by-example (QBE) statements to query tables, and perform insert and update queries. TRxQuery is a TQuery descendant. It supports macros in the SQL text, which are similar to Params. Macros ...

    联想旭日420AXP系统芯片组驱动

    Verify which OS has been installed by reading the System information. 3. It is recommended that the software be installed on systems with at least 64MB of system memory when using Windows* ...

    微软内部资料-SQL性能优化5

    The trees are managed, and branches are grafted as necessary, so that navigating down the tree to find a value and locate a specific record takes only a few page accesses. Because the trees are ...

    Sakemail

    Thanks to Serge Wagener for locate this bug, track it down and send me the fix.2/2/981.5.0- Added the Canceled property to TSakPOP and to TSakSMTP. Due to this addition now RetrieveAllMessages is a ...

    蓝屏查看,主要用于查找蓝屏错误

    the crash, and find all drivers/modules that might be involved in the crash. * BlueScreenView also allows you to work with another instance of Windows, simply by choosing the right minidump folder ...

    微软内部资料-SQL性能优化2

    A set of memory addresses that are mapped to physical memory addresses by the system. In a 32-bit operation system, there is normally a linear array of 2^32 addresses representing 4,294,967,269 byte ...

    VB编程资源大全(英文源码 文件)

    syscolor.zip This is an example of how to retrieve the system colors and display them on your form.<END><br>13 , findfiles.zip This is an example of how to return all of the files on a users ...

    everything

    voidtools(中文主页)开发的一款文件搜索工具,官网描述为“基于名称实时定位文件和目录(Locate files and folders by name instantly)”。它体积小巧,界面简洁易用,快速建立索引,快速搜索,同时占用极低的...

    Delphi7.1 Update

    RTL - VCL - THIRD PARTY - BOLD FOR DELPHI * VERIFYING THAT THE UPDATE WAS SUCCESSFUL * FILES INSTALLED BY THIS UPDATE =======================================================INSTALLING THIS UPDATE* ...

    NSIS用户手册(中文版)

    Locate GetSize DriveSpace GetDrives GetTime GetFileAttributes GetFileVersion GetExeName GetExePath GetParameters GetOptions GetOptionsS GetRoot GetParent GetFileName GetBaseName ...

    浏览器引擎SimpleBrowser.zip

     var loginLink = browser.Find("a", FindBy.Text, "Login");  if(!loginLink.Exists)  browser.Log("Can't find the login link! Perhaps the site is down for maintenance?");  else  {  ...

Global site tag (gtag.js) - Google Analytics