I need to use "find" command to search for a file, for example, "myprog.c".
But I just want to search it on my local file systems. i.e. I don't want to
search the /net directory or
any directory that is a mounted NFS shares.
Tried the following:
find / -local -a -name myprog.c
find / ! -fstype nfs -a -name myprog.c
But both of these commands still go to the /net dir and NFS mounted dir
searching for the file.
How can I avoid this?
Please help. Thanks.