When I type find . -name "so*"
I get all these results:
./sort
./.cache/evolution/sources
./.config/evolution/sources
./.local/share/sounds
But when I type find ./* -name "so*"
I only get ./sort
.
From what I know when I use .
in the command I am asking to find files that begin with "so" in my current directory, but when I use ./*
it displays only the ./sort
file and doesn't display the hidden files, so I am wondering what adding /*
actually does and how it changes my query/instruction.
.
and./
refer to the current directory - I think maybe your confusion is becausefind
by default returns all files (including hidden ones) whereas the shell glob*
expands only to non-hidden files by default (in bash, you can modify that behaviour using thedotglob
shell option). Alsofind
descends recursively of course.