On Thursday 08 June 2006 11:39 am, David Banning wrote:
Here I am bogging down in my newbie problems. I would generally want to now do a global find for the file "rcxinetd" but I don't know how to do that in Linux (I come from FreeBSD). My thought is that maybe the command must be executed as an absolute address, or that I need to setup my PATH environment variable, but I don't know how to find where the file -is- if it does exist.
Thanks -
David, I still consider myself a newbie, but as far as finding files, there are three commands which I tend to use: which, find and locate. -------------- The "which" command is useful for finding the first command that would be executed, based on your current path. For example, as a regular user, user:~> which rcxinetd user:~> but as root root# which rcxinetd /usr/sbin/rcxinetd This is on SuSE 9.3. ------------ "find" is a very useful command for doing just that, finding files. Very flexible, which of course means there are a significant number of options available. Again at the command prompt, user:~> find / -name rcxinetd -print prints out /usr/sbin/rcxinetd along with many messages about permission denied, since it is trying to search all the directories under /, even those for which a regular user does not have the appropriate permsisions. ------------- The locate command will also locate files. user:~> locate rcxinetd /usr/sbin/rcxinetd This generally needs to be installed separately (it wasn't a default at least on 9.3). Works very fast, but has to build a database or where all the files are. This database requires regular updates (generally by a cron job), storage space, etc. Hope this is useful. -- Don -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com