LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   The "ls" command (https://www.linuxquestions.org/questions/linux-newbie-8/the-ls-command-296341/)

fizgig10 03-01-2005 12:43 PM

The "ls" command
 
Coming from DOS and windows, I'm used to using the dir command like this:

dir m*

to find all files and directories that start with "m" in the current directory. In linux, when I do that command, I get those same results but it also gives me the contents of sub-folders that start with "m".

How do I get "ls" to work the same os "dir" in my example?

Tinkster 03-01-2005 12:49 PM

ls -ld m*

Without the l if you're not into detail, of course.


Cheers,
Tink

fizgig10 03-01-2005 12:50 PM

Thanks!


All times are GMT -5. The time now is 02:15 AM.