Which command displays only file and directory names without size, date and time information? A. Dir/w B. Dir a: C. Dir /b D. Dir /s

Dir/w
Dir a:
Dir /b
Dir /s

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 command to list all of the files and directories in the current directory and all of its subdirectories.

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.