
Advanced File Searching Techniques
Learn about the locate command for rapid database searches, the find command for searching directories based on attributes, file type testing using -type, filtering files by size with -size option, additional tests supported by find, and logical operators for refining search criteria.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
The Linux Command Line Chapter 17 Searching for Files Prepared by Dr. Reyes, New York City College of Technology
locate Command locate command that performs a rapid database search of pathnames, and outputs every name that matches a given substring. Example: Example:
find Command find command used to search a given directory (and its subdirectories) for files based on a variety of attributes. Example:
Using type -type used to perform a test and return certain file types according to the following table:
Examples using -type Example that only look at directories: Example that only look at regular files
find -size -size an option that allows you to search for files based on their size according to the following table: Example: