dir command
The Windows Command Prompt command that lists the files and folders in a directory.
In more detail
dir is the Windows counterpart of ls. Do not confuse it with Python's dir() function, which lists the names on an object.
Related terms
- ls — The command that lists the files and directories inside a directory.
- cd — The builtin that changes the shell's current working directory.
- Command Prompt — The traditional Windows terminal program and shell, where you type commands such as python or dir.
- dir() — A built-in function that lists the names, such as methods and attributes, available on an object or module.
Taught in
- Objects, Methods And String Case — Hands-on Python: Complete Video Course & Book
- String Slices — Hands-on Python: Complete Video Course & Book
- Split And Join — Hands-on Python: Complete Video Course & Book
- Windows And Mac Specifics — Hands-on Python: Complete Video Course & Book