I'm trying to find a file, but for some reason it is omitting a directory or a file don't know yet. If I run this

cd ~/Documents/GamesTeam/games/ichristo_dev
find . -name PayoutTest.sh



I take three results, but not the desired one. Instead if I go to a subfolder.

cd ~/Documents/GamesTeam/games/ichristo_dev/fog/server/deploy
find . -name PayoutTest.sh



It finds an extra one. Why is this happening?


You may have a symbolic link to another directory.

What does ls -l ~/Documents/GamesTeam/games/ichristo_dev/fog/server/deploy display?

You can use the option -L to include directories and files that are linked to, but are not really in that directory tree.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.