On Ubuntu 14.04, 64 bit
, I have set /lib/modules/4.2.0-27-generic/kernel/drivers
to be my current directory. I intend to search all files having net
present as a sub-string. If I search with a regex of *net*
, only the ./net
directory is returned as the search result. However, if I specify exact file name, then only it lists out the relevant file (Useless because not always I know the exact file name to cross check).
$ find . -name *net*
./net
$ find . -name *usbnet*
./net/usb/usbnet.ko
$ pwd
/lib/modules/4.2.0-27-generic/kernel/drivers
What mistake am I making?