Windows - List Directories in CLI

clearlscommand prompt, cmd.exe

PowerShell or powershell.exe

Alias: A nickname for common commands

Parameter: A value that is associated with a command 

Pasted image 20260618180546 ls = list directory command

Pasted image 20260618180656 Parent directory & child directories: A parent directory is a directory that houses all subsequent child directories

Pasted image 20260618180950This will give us a brief summary of the command’s parameters…But if you want to see more detailed help, try Get-Help ls -Full Now you can see a description of each of the parameters and ​some examples of how to use the command. ​

What if we wanted to see all the hidden files in this directory?……. Pasted image 20260618181200 The -Force parameter will show hidden and ​system files that aren’t normally listed with just ls. ​Now you can see some important files and directories like Recycle Bin.