WARNING: This site is intended for online use only; mass-downloading of pages degrades the server and is prohibited.
If you attempt to use tools to mass-download the site, you may be blocked permanently by automated software.
If you want to read this CertiGuide offline, please use one of the links on the left to purchase a convenient PDF copy. Thank you.

Like this CertiGuide? Get it in PDF format!
Click Here!

Custom Search






Table Of Contents  CertiGuide to A+ (A+ 4 Real)
 9  Chapter 5: The Linux Operating System
      9  Basic Concepts and Procedures for Creating, Viewing and Editing Files and Directories
           9  Common Commands

Previous Topic/Section
find - Search For Files In A Directory Hierarchy
Previous Page
Pages in Current Topic/Section
1
Next Page
diff - Find Differences Between Two Files
Next Topic/Section

locate - Index And Search Files

When one needs to search for a file through a large number directories, the locate command will do this with greater speed than the find command. Locate does this by having previously examined the system’s files and directories and storing the information in a database which it can search very quickly. The present version of locate (actually called slocate) also stores each directory and file’s access privileges so users cannot see files for which they do not have read access. The general form is:

locate [options] search_string

A search string can be any character string that you may want to match. The search string may be some part of file name and locate will show you any files that have that string within the name. In other words, that string can occur in any part of the name. For example, the string test would match files such as: testing, atester, and newtest. The string can occur at the beginning, in the middle, or at the end of of the file or directory name.


Previous Topic/Section
find - Search For Files In A Directory Hierarchy
Previous Page
Pages in Current Topic/Section
1
Next Page
diff - Find Differences Between Two Files
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (A+ 4 Real) from StudyExam4Less.com. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005

Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.