摘 要: 本地计算机内文件数量逐年增长,并且文件和目录还处于不断的变化中,比如新增、删除、修改等,因 而用户想要快速定位到所需文件也是越发困难。随着Linux操作系统的推广,普通Linux用户更需要一款易用的本地文 件快速搜索工具。在业务逻辑模块中建立全盘索引、更新文件索引信息,采用Tkinter库设计图形用户界面,以SQlite嵌 入式数据库管理索引数据,并使用inotify接口调用Linux内核特性来监控文件系统的变化。基于此,本文使用Python语 言开发了一款轻量级的本地文件搜索工具,并能够方便普通Linux用户的快速搜索需求。 |
关键词: Linux;本地文件;搜索;快速 |
中图分类号: TP311
文献标识码: A
|
|
Design and Implementation of the Fast Searching Tool for Local Files in Linux |
FENG Hefei,SUN Qian
|
( Zhejiang Vocational College of Technology and Trade, Jinhua 321016, China)
|
Abstract: Given that local files in computers increase year by year,and files and catalogues are in continuous changes,such as add,delete,modify,etc.,it becomes more difficult for users to fast locate the required documents.With the promotion of the Linux operating system,ordinary Linux users need an easy-to-use fast searching tool for local files.In the business logic module,the paper sets up index,updates file index information,uses Tkinter library to design GUI,manages data with SQlite embedded database,and applies Inotify interface to call Linux kernel characteristics to monitor file system changes.Based on this,this paper uses the Python language to develop a convenient local file searching tool,which can facilitate the rapid search requirements of ordinary Linux users. |
Keywords: Linux;local files;search;fast |