The correct answer is: Dir /b
The dir
command is used to list the files and directories in a directory. The /b
switch tells the dir
command to only display the file and directory names, without any other information such as size, date, or time.
The dir /w
switch tells the dir
command to list the files and directories in a wide format, which means that the file and directory names will be displayed on multiple lines.
The dir a:
switch tells the dir
command to list the files and directories in the drive that is specified by the letter a
.
The dir /s
switch tells the dir
Here is an example of the output of the dir
command with the /b
switch:
C:\Users\user>dir /b
Desktop
Documents
Downloads
Music
Pictures
Public
Templates
Videos
As you can see, the output only includes the file and directory names.