'ls' not working after a git init

Hi All,

I'm using visual studio code and using the integrated terminal.
When I create a directory and then type "git init", my new directory gets initialized.
But when I type "ls" to list the contents, I get the following error
" 'ls' is not recognized as an internal or external command, operable program or batch file. "

Am I missing something?  Thanks!
IsaacSharePoint Client Side DeveloperAsked:
Who is Participating?
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
then you'd have to load bash first since the default is to use powershell cmd prompt, you can change the defaults to use bash as your command interpreter by following the steps @ https://stackoverflow.com/questions/42606837/how-to-use-bash-on-windows-from-visual-studio-code-integrated-terminal
David Johnson, CD, MVPOwnerCommented:
ls is a unix command use DIR instead
IsaacSharePoint Client Side DeveloperAuthor Commented:
but I'm able to use that command in my bash terminal on my windows machine.
I'm just trying to use in Visual Studio Code integrated terminal on the same machine
IsaacSharePoint Client Side DeveloperAuthor Commented:
Worked like a charm.  Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.