linux - Find command not working as expected in centOS -
i using centos linux release 7.0.1406 on virtual box. trying find files using find command.
this find command not giving response:
find . -name "orm.properties" my current working directory /eserver6. file orm.properties present in /eserver6/share/system/config/cluster, find command not able find file.
i have tried other combinations
find . -name "orm.*" find . -name 'orm*' this finding few files staring orm not files present inside current working directory.
the command line looks correct , should find file. reasons why might fail:
- you don't have permission enter 1 of folders in path
/eserver6/share/system/config/cluster. - you made typo
- the file system remote , remote file system behaves oddly
- there simlink somewhere in path. default,
finddoesn't follow symlinks avoid recursive loops. usefind /eserver6 -l ...tellfind@ target of link , follow if it's folder.
the command
find /eserver6 -name "orm.properties" should find file, no matter are. if doesn't, @ -d debugoptions in manpage. want -d stat see @ files find looks , sees.
Comments
Post a Comment