answersLogoWhite

0


Best Answer

I use the locate command.

Locate just queries a database and prints out the location of the file as it is in the database. The only drawback is that you have to index your files regularly if your directories and files change to keep the database up to date.

updatedb -->Indexes files. (you can do this in a cron job if you don't want to do it manually)

locate filename -->prints the location of the file filename.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the fastest method to search for files in the Linux directory tree?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the main file directory in Linux?

It is the Home Directory.


Where is the Linux root directory located?

The root directory is usually /.


How are directory paths indicated in Linux?

The root directory is /. The home directory is /home/user.


How do you move files to a directory in Linux?

mv file /path/to/directory


What is the Linux Filesystem hierarchy used for?

The Linux Filesystem Hierarchy is used to help determine the file structure in the Linux Operating System. It defines the Directory structure and directory contents.


What is the name of the Linux top level directory of the file system?

The /, or root directory.


What Linux commands make your home directory the working directory?

the command 'cd ~' will get you there .


How do you change path in Linux?

You change the current working path directory in Linux by issuing the cd command, followed by the directory you want to change to. For example:cd /dev/inputwould take me to the that directory.


What is the symbol used to indicate you are in the root directory in Linux?

"/" is the root directory in Linux. Make sure not to confuse this with the "/root" directory, which is the home directory for the user "root" (similar to "Administrator" on Windows)


How do you find what files are taking space in Linux?

Type cd / to get to the root directory, get to your home directory, or get to the directory you wish to search from and type the below command.find . -size +500000 -printThis command would search for anything that's larger than 500MB. This value can be adjusted to a smaller value if no files are found that are this large.


How do you create a directory in Linux?

mkdir directoryname


What will be the commans to create sub directory Linux under aptech?

mkdir aptech/Linux