Find command ?
Why will
Code:
find / -iname xinitrc Code:
/etc/X11/xinit /usr/lib/X11/xinit/xinitrc I know the file is there. Please see the following ls command and its return. Code:
[root@localhost root 03:31 PM]# ls /usr/lib/X11/xinit/ Thanks all |
corrected question
Why will the following command:
find / -iname "*xinitrc*" return the following: /etc/X11/xinit /etc/X11/xinit/xinitrc.d /etc/X11/xinit/xinitrc /usr/X11R6/lib/X11/xinit /usr/X11R6/bin/xinit /usr/X11R6/man/man1/xinit.1x.gz but not return: /usr/lib/X11/xinit/xinitrc I know the file is there as the ls command ls /usr/lib/X11/xinit/ returns: Xclients xinitrc xinitrc.d Is the find command limited to searching a predefined path of directories? I didn't thin it was. Thanks all |
To answer your question: no - find isn't limited to certain
search-paths. But the thing that REALLY puzzled me in your output that it should be returning things like: /usr/X11R6/lib/X11/xinit /usr/X11R6/man/man1/xinit.1x.gz if you search for *xinitrc* What does ls -l `which find` say? Cheers, Tink |
I'm with ya. I'm confused too.
Code:
[root@localhost root 06:04 PM]# ls -l `which find` Code:
[root@localhost root 06:09 PM]# ls /usr/X11R6/lib/X11/xinit |
I was messing with a --maxdepth # option the other day. I thought it was an option for the rpm --query command. But now I don't see --maxdepth as an rpm option.
Perhaps I inadvertantly reconfigured the find command with the --maxdepth option. But how I did it, I don't know. Ah... such is my life as a newbie. |
You didn't. Find won't set any "permanent options" unless
you explicitly define an alias with a certain invocation. And it still doesn't explain why it should be using something like a phonetic search. xinitrc shouldn't give you a xinit. FULL STOP. Cheers, Tink |
All times are GMT -5. The time now is 07:46 PM. |