Find the answer to your Linux question:
Results 1 to 3 of 3
Thanks for this. How I can search within subdirectories (for lack of a better word)?...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    1

    search within subdirectories

    Thanks for this.

    How I can search within subdirectories (for lack of a better word)?

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    The find command recurses through all the directories in the target path.

    Note that Linux is case sensitve so File is not the same as file

  3. #3
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    if you need a case insensitive search, you can use find | grep -i [search_text]

    Another option for cached searching is the command locate (part of the findutils package), which caches your file list to a file, then when you call it searches the file... much faster than find, but lacks for finding files only in subdirectories or new files (less old than the last cron update execution).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...