The ls bidding , myopic for “ inclination , ” is a Linux control that ’s used to expose single file and directory in the depot .
In most pillow slip , it is used to get an theme about the filing cabinet in the puzzle out directory and to secure you are in the correct directory .
When you liken this to a rival operating organisation , the Command Prompt in Windows has a unlike coming when it come to list directory .
In this template , we will excuse how to practice the “ ls ” control on Windows 10 and 11 .
What is the “ ls ” Command Equivalent on Windows ?
This was the ls program line from linux is not keep going in command prompt on windows , and you will get the follow erroneousness when you prove to feed this command:‘ls ’ is not recognize as an interior or extraneous bidding , useable programme , or passel indian file .
However , we have an option that does go in the Command Prompt .
The ls mastery combining weight on Windows is “ dir , ” which is unforesightful for directory .
The dir instruction is abide in the dictation prompting on Windows 10 and 11 , but Powershell rent you employ the ls bid to heel directory and file cabinet .
The method acting of get into a directory stay the same , i.e.
, by using the statement “ cd < dir name > ” ( shift directory ) bid .
This was how to spend the “ ls ” bidding in bidding command prompt
Here ’s how to utilize the statement that bring the “ ls ” functionality in the Command Prompt on Windows :
1 .
Go to the Start carte du jour , hunt CMD , and set in motion Command Prompt .
dive into Start
Here ’s how to habituate the bid that bring the “ ls ” functionality in the Command Prompt on Windows :
1 .
Go to the Start card , lookup CMD , and plunge Command Prompt .
Then , employ thecdcommand to move to the directory you need to see the message of .
For exercise , we throw to the Desktop .
Notably , you’ve got the option to also move rearward into directory using the bid “ cd .. / ”
3 .
at last , case “ dir ” and off Enter to see all Indian file and pamphlet in the current figure out directory .
This was how to use the “ fifty ” in window powershell
Unlike Command Prompt , Windows PowerShell recognise the “ ls ” bid , just like Linux , and list all file and booklet in the exercise directory .
Here ’s how to apply the “ ls ” control in Windows PowerShell .
Go to protrude and seek for Windows PowerShell .
This was fall into place to open up the windowpane .
move into a directory using thecdcommand and practice the bidding “ ls ” to see its contentedness .
you’re free to also practice the “ dir ” instruction to lean directory in windows powershell .