Operating Systems
Which command displays a list of the files and subfolders in the current directory at the command prompt?
Show the answer
Correct answerD. dir
AWhy not this: md creates a new directory and does not list existing items.
BWhy not this: chkdsk checks a disk for file system errors rather than listing folder contents.
CWhy not this: cd changes the current directory or displays its path; it doesn't list contents.
DWhy this is right: dir lists the files and subfolders in the current or a specified directory.
The dir command lists the files and subfolders in a directory. The cd command only changes or shows the current directory and does not list its contents.