Display all file names in a directory on command prompt?
Is there a way to display all of the files in a directory on command prompt?
I know you can access / work within a directory by simply entering cd followed by its absolute path, but it would be very useful I think to get the names of the files in the directory.
Will award best answer promptly
I'm using Windows 10 btw
- 3 years agoFavorite Answer
In Microsoft OSes: dir
In GNU/Linux OSes: ls
Because Yahoo! Answers uses a sans-serif font, where lowercase "L" and uppercase "i" look the same, I must clarify that "ls" is lowercase "LS".
PS: Dear Yahoo! Answers maintainers:
Why? Why? Why? Why? Just switch to a serif font, would ya!
- 3 years ago
dir or dir/w