Quote:
Originally Posted by
allanwang77
-bash-3.00$ whereis resolv.conf
resolv: /etc/resolv.conf /usr/include/resolv.h
---------- Post updated at 09:28 AM ---------- Previous update was at 09:26 AM ----------
-bash-3.00$ whereis dhcpcd.ini
dhcpcd: /etc/dhcpcd.ini /usr/sbin/dhcpcd
---------- Post updated at 09:29 AM ---------- Previous update was at 09:28 AM ----------
If you have the filename, I think it will be working.
---------- Post updated at 09:33 AM ---------- Previous update was at 09:29 AM ----------
If you find it is not working, please give some example, I want to know. To me, it is a good learning chance.
Thanks
I understand what you are trying to say, but lets take an example.
Let's say that on some partition I have diferent directories and inside the directories different files named e.g: file.test.xx where xx is a number.
Now if the files are sparsed on these directories and you give example the command:
whereis file.test34 => you get =>
file: /usr/bin/file
I don't know if you get the point.
These files can be searched with the find command but I want to be quicker in finding it, and not to comsume resources (find consumes lot of cpu)
Regards,
Enid