In your example, "--
" says to stop looking for further options. Everything else after that is a path, so it finds anything else matching that. And since "./
" means "the current directory" it matches everything under the current directory (the Desktop
will cause that directory, as well as anything inside it, to be reported twice.)
You probably want something like:
find ./Desktop -type f
Which will find any files inside the ./Desktop directory, that is a file (not directories, symbolic links, etc...)
I know that manpages can be quite technical sometimes, but "man find
" will give you a wealth of other options that might help, as well as a few examples that may help with common problems.