how to use find command
Posted on 2011-02-27
If I'm logged in as root and change to the root directory the following command works as expected:
find -name myfile
If however I do:
find / -name myfile
it lists every directory on the drive.
This second option would be handy so I wouldn't have to switch to the root every time I want to search for a file.
Why does it do that and what should I type/