What is the difference between find and locate command in linux?



What is the difference between find and locate command in linux?..

Answer / Ranjeet Kumar Nikhil

The 'find' command searches for files recursively within a directory hierarchy starting from the current directory. It provides more options to filter results. On the other hand, 'locate' uses a pre-built database to quickly search file names without needing to search directories, but it might not be up-to-date.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

In /boot/grub/grub.conf file there is a line kernel /vmlinuz-version ro root=/dev/sda2, What is the meaning of "/" before vmlinuz? Pls explain?

1 Answers   HCL,


How to schedule cron backup to run on 4th saturday of month??

11 Answers   HCL,


How do I list directories in linux?

1 Answers  


what is a command to display top 10 users who are using Huge Space?

3 Answers   IBM, TNS,


Why is linux cpu usage so high?

1 Answers  


How will retrieves incoming mails from different web sites

2 Answers   HCL, HP,


What does && mean in bash?

1 Answers  


How many types of dos commands are there?

1 Answers  


If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?

1 Answers  


What is the difference between diff and cmp command in unix?

1 Answers  


What does grep grep do?

1 Answers  


What does grep command do?

1 Answers  


Categories