Findコマンドがまったく機能しないようです。たとえば、私は絶対にindex.phpという名前のファイルがあるディレクトリにいて、これを実行します:
[root@server htdocs]# find . -name "index.php"
find: .: No such file or directory
私は常にそのようなファイルやディレクトリのエラーは発生しません。
定義するパスや検索するファイルに関係なく、常にこのエラーが発生します。私は非常に単純なものを見落としていると確信しています。誰かが私が間違っていることを指摘できますか?
[root@server htdocs]# pwd
/srv/www/htdocs
[root@server htdocs]# type -a find
find is /usr/bin/find
[root@server htdocs]# ls -la | grep index.php
-rw-rw-r-- 1 andris users 413 Sep 1 2013 index.php
[root@server htdocs]# find . -name "index.php"
find: .: No such file or directory
[root@server htdocs]# find .
.
find: .: No such file or directory
[root@server htdocs]# stat .
File: `.'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: ca00h/51712d Inode: 155686 Links: 12
Access: (0775/drwxrwxr-x) Uid: ( 504/ andris) Gid: ( 100/ users)
Access: 2014-06-17 19:37:22.000000000 +0000
Modify: 2014-06-08 21:06:16.000000000 +0000
Change: 2014-06-08 21:06:16.000000000 +0000
[root@server htdocs]# find --version
GNU find version 4.2.27
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION SELINUX
strace find .
出力:https : //gist.github.com/andrisp/f3adaf740548eead33da
[root@server htdocs]# find . -noleaf -name "index.php"
find: .: No such file or directory
find .
どちらも機能しませんか?どうls -al
ですか?
find .
見つかった.
エントリが、その後、それは好奇心旺盛で存在していないと文句を言い。これはのバグのようですがfind
、どのバージョンを使用していますか?
strace find .
どこかの出力を投稿できますか?
ls -la|grep "index.php"
言うの?