Tuesday, March 6, 2012

Debian Search Files and Directories inside Media and External Drives

When you Need to Find a File that is Located inside a Media or an External Drive on Debian Linux you can Uselessly Try to Search by the File Manager...

After if you Know the Search Techniques on Terminal you can try by the usually Very Efficient locate Command but Again Without luck!

There are a Change to Make on the locate Configuration File that Enable you to Easily Find Files and Directories Inside all Media and External Drives.

Here is the WoWEasy-Guide :)
  1. Open a Terminal Window:
    • Gnome:
      Accessories >> Root Terminal
    • KDE:
      Applications >> System >> Terminal
  2. Edit the /etc/updatedb.conf File
    For Example with the nano Editor:
    sudo nano /etc/updatedb.conf
    If your User is Not in the Sudoers File look: Add User to Sudoers File
    • From the Line Beginning by "PRUNEPATHS"
      Remove
      /media
    • From the Line Beginning by "PRUNEFS"
      Remove
      isoXXXX
    • and Every other File Types you Want locate Will Looking For...
  3. Before to leave Just Check this...


    Bloogger Blogger, Google Blogger, Google Google


    Others Tuts
  4. To Save Changes
    Ctrl+x
  5. To Locate a File or a Directory you Execute this Command in Terminal
    sudo locate yourKeyword
    Whith this Easy-Technique your are Now Able to Looking for Files into Tera-Bytes of External Drives and Media :)

No comments:

Post a Comment