Is there any difference between a directory name such as
I noticed this happens when I execute ls in some directories - some of the directory names have a slash and some don't. This is problematic because if I want to access a file contained in a directory, I may need to add a slash at the end:
To search a file in a directory, I found two commands as below:
ls -ltr initialfilename*
find ./ -name initialfilename*
Sometime, first command gives me the search result but sometime I used to execute second command.
What is the difference between these two set of Linux command? Please specify your answer around the major difference only.