LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I am a newbie to linux !!! Please help to find files on linux box (https://www.linuxquestions.org/questions/linux-newbie-8/i-am-a-newbie-to-linux-please-help-to-find-files-on-linux-box-645870/)

praveenjayak 05-30-2008 12:16 PM

I am a newbie to linux !!! Please help to find files on linux box
 
Hi,

Please help me in finding files in linux, its been hard time to search for files. find is not giving me the proper results at the same time GUI find option is working fine. however i wanted to search from CLI

appreciate it

Praveen.

AGazzaz 05-30-2008 12:19 PM

You can use "locate" or "find". Locate is much faster than find but relies on some sort of database which needs updating in order for locate to find any new files. Some distros update the database automatically through a cron job or everytime you reboot. With others, you have to manually update the database by doing "updatedb" as root.
Originally posted by reddazz

pixellany 05-30-2008 02:08 PM

Quote:

Originally Posted by praveenjayak (Post 3169502)
Hi,

Please help me in finding files in linux, its been hard time to search for files. find is not giving me the proper results at the same time GUI find option is working fine. however i wanted to search from CLI

appreciate it

Praveen.

Can you tell us the problem with "find"? (There are lots of options)

On brute force method is using grep--either for filenames or content

I like pies 05-30-2008 02:48 PM

Hi dude.

There's probably not a bigger noob on this site than me, but I've sometimes found the 'whereis' program to be useful when it comes to locating compiled executable files.

seraphim172 05-30-2008 03:53 PM

Both 'whereis' and 'which' can help finding files. But it is certainly better to get used to 'find' and learn the available options - without properly understanding how it works it is difficult to find a file, even if it's on the system.

Linux Archive

grizly 05-30-2008 06:14 PM

http://www.hccfl.edu/pollock/Unix/FindCmd.htm
http://www.computerhope.com/unix/ulocate.htm

Google is your friend.

I like pies 06-07-2008 06:04 AM

Quote:

Originally Posted by seraphim172 (Post 3169717)
Both 'whereis' and 'which' can help finding files. But it is certainly better to get used to 'find' and learn the available options - without properly understanding how it works it is difficult to find a file, even if it's on the system.

Wow dude, that is one totally awesome little program, and, if I'm being honest, I had never heard of it, I had only ever used 'whereis' beforehand. Many thanks, old bean.


All times are GMT -5. The time now is 05:33 PM.