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. |
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 |
Quote:
On brute force method is using grep--either for filenames or content |
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. |
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 |
http://www.hccfl.edu/pollock/Unix/FindCmd.htm
http://www.computerhope.com/unix/ulocate.htm Google is your friend. |
Quote:
|
All times are GMT -5. The time now is 05:33 PM. |