LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Note to newbies on ls command!! (https://www.linuxquestions.org/questions/linux-newbie-8/note-to-newbies-on-ls-command-197512/)

samills70 06-25-2004 04:12 AM

Note to newbies on ls command!!
 
Just a note to newbies starting out. If you want to find files in you current working directory you must use the "ls" command and then an extension. If you are coming over from a windows/dos based environment be aware that, for instance if you're looking for directories starting with N, " ls N* " will NOT give you all files with N in the beginning.... it will list the files in any directory starting with N* in your present working directory. You have to type ls -d N* to get the directories in the current working directory. This perplexed me for quite some time... I know, I'm a bit slow on the uptake :-) but there you have it. So if you're getting loads of files listed, and they look like nothing that you're actually looking for you're getting the command wrong.

srichand 06-25-2004 08:47 AM

man ls
or info ls will give you loads of other options you could use.

Srichand


All times are GMT -5. The time now is 08:18 AM.